Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding Cocoa checkboxes to each other?



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:
http://lists.apple.com/mailman/options/cocoa-dev/jalkut%40red- 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Binding Cocoa checkboxes to each other? (From: Jeff Heyob <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.