• 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
NSKeyValueBindingCreation Protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSKeyValueBindingCreation Protocol


  • Subject: NSKeyValueBindingCreation Protocol
  • From: Richard Somers <email@hidden>
  • Date: Sat, 28 Apr 2012 11:17:23 -0600

I have a number of controls with custom bindings that are programmatically added to a view hierarchy in a window. Calling –unbind: on these controls when the window is closes is a challenge.

But it actually does not seem to matter. If –unbind: is never called and the window is closed there are no memory leaks reported in Instruments.

Apple has an undocumented class NSAutounbinder which apparently addresses a problem with retain cycles when binding to File's Owner from a nib file. However I am binding programmatically not inside a nib file. But perhaps NSAutounbinder is somehow working in my behalf.

Is unbinding my programmatic bindings when the window closes something that I should worry about?

--Richard


_______________________________________________

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: NSKeyValueBindingCreation Protocol
      • From: Kyle Sluder <email@hidden>
    • Re: NSKeyValueBindingCreation Protocol
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: nstextfield question
  • Next by Date: Re: NSKeyValueBindingCreation Protocol
  • Previous by thread: Re: Sandbox Frustrations - A Good Idea handicapped by poor docs
  • Next by thread: Re: NSKeyValueBindingCreation Protocol
  • Index(es):
    • Date
    • Thread