Re: Binding Cocoa checkboxes to each other?
Re: Binding Cocoa checkboxes to each other?
- Subject: Re: Binding Cocoa checkboxes to each other?
- From: Daniel Jalkut <email@hidden>
- Date: Wed, 8 Nov 2006 14:05:15 -0500
Hi Jeff - it makes more sense for all three checkboxes (UI elements)
to depend on the state of something in your application model.
In this case you're binding the one checkbox to something in your
model, right?
[ ] A Setting - value bound to isAEnabled
[ ] B Setting - value bound to isBEnabled
[ ] C Setting - value bound to isCEnabled
So let's say B and C should be disabled when A is disabled. Instead
of binding to anything on the checkbox, it's both more correct and
more likely to work if you bind to the same model element, but hook
it up to the "enabled" binding instead of value.
[ ] B Setting - enabled bound to isAEnabled
[ ] C Setting - enabled bound to isAEnabled
Hope this helps,
Daniel
On Nov 8, 2006, at 10:28 AM, Jeff Heyob wrote:
Hi,
I'm new to Cocoa bindings.
I would like to make a simple Cocoa AppleScript application that
dims a couple checkboxes in its interface when another checkbox is
checked. This would focus the user on the exclusive interaction of
three checkboxes.
Is there a way to do this with bindings to link the enable state of
two checkboxes with the value of another checkbox?
Thanks,
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
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