• 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: When should one call unbind:? (in a GC application)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: When should one call unbind:? (in a GC application)
      • From: mmalc crawford <email@hidden>
  • Prev by Date: CALayer vs Layer Backed Views
  • Next by Date: Re: NSBitmapImageRep byte/color component ordering
  • Previous by thread: Re: CALayer vs Layer Backed Views
  • Next by thread: Re: When should one call unbind:? (in a GC application)
  • Index(es):
    • Date
    • Thread