• 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
Binding Leak - Turn off Raises For Not Applicable Keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding Leak - Turn off Raises For Not Applicable Keys


  • Subject: Binding Leak - Turn off Raises For Not Applicable Keys
  • From: Seth Willits <email@hidden>
  • Date: Thu, 26 Jan 2012 17:52:23 -0800

Very simple setup in a test project. I have an array controller with content bound to App Delegate's "objects" array, and I have a slider control bound to the controller's selection.value. I set App Delegate's objects array to an array with an NSString in it. So the NSString *does not respond* to value, so normally this would raise an exception. If you turn off Raises For Not Applicable Keys on the slider's Value binding, then the application leaks an NSString from within valueForKeyPath:.


http://www.sethwillits.com/temp/BindingRaiseLeak.zip
http://sethwillits.com/temp/upshot/upshot_xMuBExbD.jpg

It leaks for each binding with the setting turned off, each time the selection changes.


Thoughts? Will radar it if I'm not missing something.


--
Seth Willits




_______________________________________________

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


  • Prev by Date: Re: ARC and blocks
  • Next by Date: Re: ARC and blocks
  • Previous by thread: Re: Full-Height Toolbar Item
  • Next by thread: Binding Leak - Turn off Raises For Not Applicable Keys
  • Index(es):
    • Date
    • Thread