Re: Binding Cocoa checkboxes to each other?
Re: Binding Cocoa checkboxes to each other?
- Subject: Re: Binding Cocoa checkboxes to each other?
- From: Jeff Heyob <email@hidden>
- Date: Wed, 8 Nov 2006 16:25:10 -0500
Daniel,
Thanks for the advice. I was attempting to bind the enable state of
two checkboxes to the value of a third checkbox. It was proving to be
very frustrating. However, Stephen Deken replied to a very similar
request to bind different elements of a UI together. His reply
included a sample IB file to demonstrate his method. Cheers.
His example was nearly identical to what I was trying which did not
work. After some serious head scratching, I replicated my stuff in
his IB file and it worked. I now sense a very bad bug smell in my IB
file.
I now believe that I have a corrupted IB file that needs to be
rebuilt. It is probably in the Applescript part which contains 28
scripts. All of the checkboxes drive separate Applescript.
file rebuild time.
Thanks for your help.
Jeff
On Nov 8, 2006, at 2:05 PM, Daniel Jalkut wrote:
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