Re: Cocoa Bindings & GUI question
Re: Cocoa Bindings & GUI question
- Subject: Re: Cocoa Bindings & GUI question
- From: Ricky Sharp <email@hidden>
- Date: Mon, 16 May 2005 06:48:34 -0500
On Monday, May 16, 2005, at 06:37AM, Jesus De Meyer <email@hidden> wrote:
>Is it possible to have Cocoa Bindings deal with enabling and
>disabling of certain GUI elements? For instance, when the enabled
>state of a group of switch buttons depends on whether another switch
>button is checked or not.
>
>If so, how could this be done?
Bind your master checkbox's 'value' attribute to your model (e.g. user defaults) with whatever key path you want. Then, for each of the checkboxes in your group, bind their 'enabled' attribute to your model to the same key path as for your master checkbox.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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