1#import "Foo.h" 2 3@implementation Foo 4 5- (id)init 6{ 7 self = [super init]; 8 if (self) { 9 _bar = [[Bar alloc] init]; 10 } 11 NSLog(@"waiting");; // Set breakpoint where Bar is an interface 12 return self; 13} 14 15- (void)dealloc 16{ 17 [_bar release]; 18 [super dealloc]; 19} 20 21- (NSString *)description 22{ 23 return [NSString stringWithFormat:@"%p: @Foo { _bar = %@ }", self, _bar]; 24} 25 26@end 27