• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Binding Cocoa checkboxes to each other?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Binding Cocoa checkboxes to each other?
      • From: Jeff Heyob <email@hidden>
References: 
 >Binding Cocoa checkboxes to each other? (From: Jeff Heyob <email@hidden>)

  • Prev by Date: Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?
  • Next by Date: Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?
  • Previous by thread: Binding Cocoa checkboxes to each other?
  • Next by thread: Re: Binding Cocoa checkboxes to each other?
  • Index(es):
    • Date
    • Thread