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 return self; // Set breakpoint where Bar is an interface 12 } 13 14 - (void)dealloc 15 { 16 [_bar release]; 17 [super dealloc]; 18 } 19 20 - (NSString *)description 21 { 22 return [NSString stringWithFormat:@"%p: @Foo { _bar = %@ }", self, _bar]; 23 } 24 25 @end 26