Re: Can I call unbind: in finalize? Is it thread safe?
Re: Can I call unbind: in finalize? Is it thread safe?
- Subject: Re: Can I call unbind: in finalize? Is it thread safe?
- From: Rob Keniger <email@hidden>
- Date: Fri, 9 Jan 2009 09:42:02 +1000
On 09/01/2009, at 2:12 AM, Sean McBride wrote:
I'm inclined to agree. However, mmalc's page says "If your view may
become full screen, then you should ideally use another invalidation
method to mark when the view is finished with and unbind in that,
otherwise you should unbind in finalize".
This actually doesn't work, -finalize is never called if you still
have observers registered, so you can't unbind in -finalize.
So if not finalize and not viewWillMoveToSuperview, when can I stop
the
observing I started in bind:? That's what I'm trying to get at
really.
I do it based on a notification from another object (in my case the
document) when it is cleaning up.
--
Rob Keniger
_______________________________________________
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