Re: Guidelines for Cocoa frameworks supporting garbage collection?
Re: Guidelines for Cocoa frameworks supporting garbage collection?
- Subject: Re: Guidelines for Cocoa frameworks supporting garbage collection?
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 06 Jul 2008 13:55:10 -0400
- Thread-topic: Guidelines for Cocoa frameworks supporting garbage collection?
on 2008-07-06 11:35 AM, Michael Ash at email@hidden wrote:
> You might use __weak if you want a zeroing weak reference. But this
> is
extremely uncommon in a dual-mode framework such as what you're
writing,
> because there's no equivalent to __weak in the non-GC world.
There is a weak retain technique, and I use it in one of my frameworks. It
was outlined by Ken Case of OmniGroup many years ago. See
www.cocoadev.com/index.pl?WeakReferences. I anticipate that I may use __weak
to replace this when my framework is used in a garbage collection
environment.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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