Re: Memory management question
Re: Memory management question
- Subject: Re: Memory management question
- From: Randall Meadows <email@hidden>
- Date: Wed, 24 Mar 2004 17:02:46 -0500
At 7:14 PM +0000 3/24/04, Alastair Houghton wrote:
remember, BTW, that it's harmless sending messages to nil,
...
Alternatively, you can immediately release any individual
autoreleased object by doing
[[someObject retain] release];
(The -retain increments the reference count, removing it from the
autorelease pool, then the -release triggers the deallocation of the
object.)
When an object gets deallocated, is it then set to nil? In the above
sample, is then "someObject" == nil? Or does that variable contain
an invalid (unallocated) memory address, as would a similar pointer
that has been free'd in POC (plain ol' C)?
_______________________________________________
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.