Re: [[object autorelease] release]
Re: [[object autorelease] release]
- Subject: Re: [[object autorelease] release]
- From: John Hörnkvist <email@hidden>
- Date: Tue, 2 Oct 2001 13:57:38 +0200
On Tuesday, October 2, 2001, at 01:29 PM, Markus Hitter wrote:
So, to avoid huge collections of autoreleased and no longer needed
objects, it might make sense to add a "flush" method to
NSAutoreleasePool which would free all objects with retain count
already zero but would NOT decrement the retain count. This would avoid
easily these nested pools, which appear a little ugly (at least to me).
That does not work. Once the retain count reaches zero, the object is
deallocated. There will never be objects in the autorelease pool with a
retain count of zero.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com