(XCode 4.3) Why does the following crash at the NSLog statement with EXC_BAD_ACCESS?
BOOL autoFlag
@property BOOL autoFlag
@synthesize autoFlag
[object setAutoFlag:YES]
NSLog(@"%@", [object autoFlag]); //crashes here in debugger with EXC_BAD_ACCESS
I managed to get around it with NSLog(@"%d"...
, which prints 1
, but why doesn't @"%@"
work? I thought it just converts the value to a string?