views:

42

answers:

1

Is there a way to get the hex address of an instance object in the debug window of XCode via NSLog?

I have a set of NSArray and NSDictionary objects and I want to get the address of the instance, not the contents.

Trying [obj description] will tell me the contents but not address.

+6  A: 
NSLog(@"%p", objcObj);

Will print object's address

Vladimir
That'd be the long way around. Just 'p objcObj' will work in the debugger.
bbum