caferias <firstname.lastname@example.org> wrote:
> Hello, I have been looking where Objective-C store reference counting.
> I supposed that it was an object attribute, but it doesn't appear in
> the debugger. Some suggestions?
For reasons related to memory savings, thread safety, and history,
refcounts are stored in a global hash table, not inline with the object
If you want to get an object's refcount (do this as a debugging aid only,
and even then you should use it extremely sparingly!) you can simply use
the -retainCount message to ask it.
Rogue Amoeba Software