Re: AutoreleasePool mechanics
Re: AutoreleasePool mechanics
- Subject: Re: AutoreleasePool mechanics
- From: email@hidden (mikevannorsdel)
- Date: Thu, 20 Dec 2001 07:25:57 -0700
That's about what I figured. What I'm really curious about is the pool
provided by AppKit. Is this pool automatically replaced (cleaned)? If not,
it would seem an application can build a big pile of objects before
termination. The documentation says the AppKit automatically creates and
destroys pools. I wonder when and how often.
On 12/20/01 7:09 AM, "Ondra Cada" <email@hidden> wrote:
>
The pool does no magic: it just stores object references, and when it is
>
_deallocated_ (!), it releases them all.
>
>
Just imagine an NSArray which does not retain objects when inserted: the
>
pool does just that (plus a few more tricks like supporting pool hierarchy,
>
of course).