Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Releasing memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Releasing memory



On Jul 3, 2004, at 1:11 PM, Jonathan Jackel wrote:

I am new to cocoa and am having trouble getting my head around when to release objects. Is their anyway in x-code/debugger to see the retain count of an object

NSLog(@"Retain count = %d", [yourObject retainCount]);

Or, to do that in the debugger console:

print (unsigned int)[yourObject retainCount]

The GDB documentation is your friend: <file:///Developer/Documentation/DeveloperTools/gdb/gdb/gdb_toc.html>

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Releasing memory (From: Jonathan Jackel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.