Re: A Binding Question
Re: A Binding Question
- Subject: Re: A Binding Question
- From: Scott Anguish <email@hidden>
- Date: Sat, 2 Jul 2005 02:08:17 -0400
sure...
bind the enabled binding to the array controller's arrangedObjects
with the keypath @count
with a count of 0 it is disabled, anything else is true
On Jul 2, 2005, at 1:40 AM, Tony S. Wu wrote:
i bind a NSButton's "enabled" to a NSArrayController.
but i want the NSButton to be enabled only when NSArrayController
has "one" object selected.
is this possible?
thanks.
Tony S. Wu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden