Possible Duplicate:
How to get the reference count of an NSObject?
Is there any way to find out reference count for individual variable at any given instance. I tried with heap shots it gives overall reference counts in a flow.
Thanks
Possible Duplicate:
How to get the reference count of an NSObject?
Is there any way to find out reference count for individual variable at any given instance. I tried with heap shots it gives overall reference counts in a flow.
Thanks
You can use the -retainCount
method to get the retain count for an NSObject
, but bear in mind that you will almost certainly not get back any useful information. Objects can be retained by various parts of the system and frameworks so you will often get back unexpected results.