| 1 | #import "Bar.h" |
| 2 | |
| 3 | @interface InternalClass : NSObject { |
| 4 | @public |
| 5 | NSString *foo; |
| 6 | NSString *bar; |
| 7 | } |
| 8 | @end |
| 9 | |
| 10 | @implementation InternalClass |
| 11 | @end |
| 12 | |
| 13 | @interface Bar () |
| 14 | { |
| 15 | NSString *_hidden_ivar; |
| 16 | } |
| 17 | |
| 18 | @end |
| 19 | |
| 20 | @implementation Bar |
| 21 | |
| 22 | - (id)init |
| 23 | { |
| 24 | self = [super init]; |
| 25 | if (self) { |
| 26 | _hidden_ivar = [NSString stringWithFormat:@"%p: @Bar" , self]; |
| 27 | } |
| 28 | return self; // Set breakpoint where Bar is an implementation |
| 29 | } |
| 30 | |
| 31 | - (void)dealloc |
| 32 | { |
| 33 | [_hidden_ivar release]; |
| 34 | [super dealloc]; |
| 35 | } |
| 36 | |
| 37 | - (NSString *)description |
| 38 | { |
| 39 | return [_hidden_ivar copyWithZone:NULL]; |
| 40 | } |
| 41 | |
| 42 | @end |
| 43 | |
| 44 | |