Using multiple bindings to enable a button
Using multiple bindings to enable a button
- Subject: Using multiple bindings to enable a button
- From: Steve Mills <email@hidden>
- Date: Tue, 10 Feb 2015 22:23:39 -0600
The docs say that when binding multiple NSButton enabled properties, they are ANDed together. I tried this earlier and it didn't work when I had them in one order. So I switched the order and it worked. Bwuh? Here's what I had first:
-Enabled (Keywords Array Controller.selection.@count) using a custom value transformer that returns true only if the count is 1
-Enabled2 (File's Owner.comboStringValue.length)
That didn't work. Swapping them did. Smells buggy to me. Can anyone confirm this?
--
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