Re: Releasing memory
Re: Releasing memory
- Subject: Re: Releasing memory
- From: Jonathan Jackel <email@hidden>
- Date: Sat, 3 Jul 2004 12:11:31 -0700
On Jun 17, 2004, at 12:50 AM, Michael Curtis wrote:
Hi,
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]);
and at the end of a program being run to check everything is released?
You don't need to worry about this. When an application terminates,
the operating system reclaims all of the app's memory, regardless of
whether objects have been properly released or not.
Jonathan
_______________________________________________
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.