Re: AutoreleasePool mechanics
Re: AutoreleasePool mechanics
- Subject: Re: AutoreleasePool mechanics
- From: Lance Bland <email@hidden>
- Date: Thu, 20 Dec 2001 10:10:06 -0500
On Thursday, December 20, 2001, at 09:25 AM, mikevannorsdel wrote:
The documentation says the AppKit automatically creates and
destroys pools. I wonder when and how often.
That fact is clearly spelled out in the NSAutoreleasePool documentation.
(at least clear enough for me). Here it is:
"The Application Kit creates a pool at the beginning of the event loop
and releases it at the end"
The answer to your DO question is not clearly spelled out in the
documentation by any means, not enough for me anyways. And depending on
the implementation (NeXTSTEP, OpenStep, YellowBox, Cocoa) what is
documented may or may not be correct. In addition, there may be
undocumented issues that you only become aware of when you have complex
problems like archiving subobjects and trying to transport them with DO.
You also asked if an autorelease pool only releases its owned objects
when it is released itself. The answer is yes but last time I read the
docs. that fact is not documented even though it is a very important
fact.
-lance
_______________________________________________
Lance Bland
System Administrator at VVI
mailto:email@hidden
http://www.vvi.com
Realtime, bulk and web data reporting and visualization