• 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
Can I call unbind: in finalize? Is it thread safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can I call unbind: in finalize? Is it thread safe?


  • Subject: Can I call unbind: in finalize? Is it thread safe?
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 7 Jan 2009 16:55:12 -0500
  • Organization: Rogue Research Inc.

Hi all,

Is it safe to call unbind: in finalize?  Is unbind: thread-safe?

Traditionally, Apple has recommended calling unbind: in a view's dealloc
method.  With GC one might be tempted to call it in finalize, but 1)
finalize is discouraged in general 2) finalize implementations must be
thread safe.  The docs make no guarantee about unbind:'s thread safety.

When do AppKit views call unbind:?

(I know this has been discussed before, by me no less, and I am familiar
with mmalc's recommendations on his bindings page.)

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: 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: Ron Lue-Sang <email@hidden>
  • Prev by Date: Re: Cocoa Support for Mail
  • Next by Date: Re: Problem with AFP server Notification seek advice.
  • Previous by thread: Re: Cocoa Support for Mail
  • Next by thread: Re: Can I call unbind: in finalize? Is it thread safe?
  • Index(es):
    • Date
    • Thread