ここで何が起こっているのか誰でも知っています:
@implementation Test
{
NSData *_data;
}
- (id)initWithData:(NSData *)data
{
self = [super init];
if (self)
{
_data = data;
}
return self; // BREAKPOINT HERE
}
lldb から:
(lldb) p data
(NSData *) $1 = 0x07f911e0 30308 bytes
(lldb) p _data
error: use of undeclared identifier '_data'
error: 1 errors parsing expression
表示できないのはなぜ_data
ですか?