Re: Memory Management
Re: Memory Management
- Subject: Re: Memory Management
- From: Scott Ribe <email@hidden>
- Date: Fri, 30 Dec 2005 16:24:53 -0700
- Thread-topic: Memory Management
I think you misunderstand the function of autorelease pools. They are not
allocation pools like you may have encountered in various C/C++ memory
managers. They are nothing more than lists of objects to which release
messages will be sent at some future time. When the current pool is
released, any objects to which it sends release messages which don't
decrement to a release count of 0 will not be dealloc'd. Any such objects
can still be sent a release message the normal way, or an autorelease
message which will result in a release message when the now-current pool is
released.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden