brintos

brintos / llvm-project-archived public Read only

0
0
Text · 397 B · 4d84d43 Raw
27 lines · plain
1#import "Foo.h"2 3@implementation Foo4 5- (id)init6{7    self = [super init];8    if (self) {9        _bar = [[Bar alloc] init];10    }11    NSLog(@"waiting");; // Set breakpoint where Bar is an interface12    return self;13}14 15- (void)dealloc16{17    [_bar release];18    [super dealloc];19}20 21- (NSString *)description22{23    return [NSString stringWithFormat:@"%p: @Foo { _bar = %@ }", self, _bar];24}25 26@end27