Re: AutoreleasePool mechanics
Re: AutoreleasePool mechanics
- Subject: Re: AutoreleasePool mechanics
- From: Ondra Cada <email@hidden>
- Date: Thu, 20 Dec 2001 15:09:20 +0100
mikevannorsdel,
>
>>>>> mikevannorsdel (m) wrote at Thu, 20 Dec 2001 05:10:51 -0700:
m> I'm curious to when autorelase pools flush their objects. Will an
m> autorelease pool not send release to any objects until it's released?...
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).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc