• 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: Cocoa Bindings & GUI question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cocoa Bindings & GUI question
      • From: August Trometer <email@hidden>
    • Re: Cocoa Bindings & GUI question
      • From: August Trometer <email@hidden>
    • Re: Cocoa Bindings & GUI question
      • From: Jesus De Meyer <email@hidden>
References: 
 >Cocoa Bindings & GUI question (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Cocoa Bindings & GUI question
  • Next by Date: Document based CoreData app and global context
  • Previous by thread: Cocoa Bindings & GUI question
  • Next by thread: Re: Cocoa Bindings & GUI question
  • Index(es):
    • Date
    • Thread