discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setter/getter discussion


From: Pete French
Subject: Re: setter/getter discussion
Date: Tue, 06 Aug 2002 14:09:30 +0100

> The autorelease  pool sends dealloc to  an object it has  only if it's
> retain count goes down to zero when it releases it.
>
> So, if you retain the object, you can autorelease (release in the future).

Very interesting. I might have to go away and change the way I have
implemented this in my own foundation kit in that case... I actually
implemnted it using a flag to say whether or not an object had been
autoreleased, to prevent it being autoreleased twice!

-bat.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]