• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I call unbind: in finalize? Is it thread safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Can I call unbind: in finalize? Is it thread safe? (From: "Sean McBride" <email@hidden>)
 >Re: Can I call unbind: in finalize? Is it thread safe? (From: "Kyle Sluder" <email@hidden>)
 >Re: Can I call unbind: in finalize? Is it thread safe? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: What's the most cocoa-ey pattern for this?
  • Next by Date: Resetting the TableView
  • Previous by thread: Re: Can I call unbind: in finalize? Is it thread safe?
  • Next by thread: MEETING: Chicago CocoaHeads / CAWUG Tuesday Jan. 13th
  • Index(es):
    • Date
    • Thread