Re: controllers, delegates, retain, release ...
Re: controllers, delegates, retain, release ...
- Subject: Re: controllers, delegates, retain, release ...
- From: Charles Steinman <email@hidden>
- Date: Fri, 22 Feb 2008 14:17:58 -0800 (PST)
--- Jack Repenning <email@hidden> wrote:
> On Feb 22, 2008, at 1:13 PM, Keith Duncan wrote:
> > This would be a problem should the code base ever
> be compiled with
> > GC support.
>
> Interesting point, that retain/release supports a
> lifecycle model
> (free-floating, self-managed object) that can't be
> supported by GC....
I think it can. You'd just need to disable collection
on the object and have it re-enable collection for
itself when it decided it was no longer needed (this
is essentially what CFRetain and CFRelease do under
GC).
Cheers,
Chuck
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden