Binding Leak - Turn off Raises For Not Applicable Keys
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