Solved: Re: Using multiple bindings to enable a button
Solved: Re: Using multiple bindings to enable a button
- Subject: Solved: Re: Using multiple bindings to enable a button
- From: Steve Mills <email@hidden>
- Date: Wed, 11 Feb 2015 13:06:20 -0600
Thanks for the mental prodding, guys. I did some sleuthing by added an observer for the array controller's selectedObjects.@count in code so I could watch it as well as the comboStringValue property. When the selection changed and the combobox was empty, I noticed the comboStringValue property was nil, which spurred me to check the Null Placeholder for the comboStringValue binding. It was Unspecified. Changing it to No solved the problem.
This also sparked my understanding of the other binding attributes, like Multiple Values Placeholder and such, resulting in me not needing my special EnableOnlyFor1ItemXformer value transformer on the array controller selectedObjects.@count binding. Duh. I guess when I decided to tackle Core Data, Cocoa bindings, NSTableView, and NSArrayController all at the same time, my brain quickly overflowed. :)
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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