In a breakpoint action, I'm going this:
@(const char *)[(NSString*)[myobject retainCount]UTF8String]@
which gives this output:
<Error: Cannot access memory at address 0x2>
If I do this:
@(NSString*)[myboject retainCount]@
it outputs a memory address. But if I do this in code:
NSLog(@"retain count is: %d", [myobject retainCount]);
it gives this output:
2009-04-18 09:58:48.085 myapp[80277:20b] retain count is: 1
What is the syntax needed to output correctly in the breakpoint action?
Also, where can I find a complete listing of the format keys for breakpoint actions?