Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the hex address of an instance in XCode

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.

like image 323
Justin Galzic Avatar asked Nov 21 '25 16:11

Justin Galzic


1 Answers

NSLog(@"%p", objcObj);

Will print object's address

like image 64
Vladimir Avatar answered Nov 23 '25 09:11

Vladimir



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!