One Quickie


Printing object retain count in gdb (gdb->General)
In the gdb console:
(gdb) print (int)[theObject retainCount]

If you're expecting to have an excessively high number of retains, you can use (unsigned int) in the cast. I find (int) a skootch faster to type.



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com