Re: When should one call unbind:? (in a GC application)
Re: When should one call unbind:? (in a GC application)
- Subject: Re: When should one call unbind:? (in a GC application)
- From: Alastair Houghton <email@hidden>
- Date: Thu, 1 Nov 2007 10:34:49 +0000
On 31 Oct 2007, at 19:03, Sean McBride wrote:
Now I don't know where to call -unbind. Doing it in -finalize seems
dangerous, what with Apple discouraging it so much.
This is <rdar://5497135> BTW.
Ideally, if you're using GC, you shouldn't need to do this sort of
thing because whatever is implementing the binding should be using a
nilling weak reference, and can therefore detect when you go away and
clean up itself.
Of course, whether or not that happens in practice I have no idea, but
I imagine one of Apple's guys will chime in at this point with more
information.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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