• 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: Disabling items in NSTabView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling items in NSTabView


  • Subject: Re: Disabling items in NSTabView
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 29 May 2007 16:03:57 -0400

On 5/29/07, Daniel T. Staal <email@hidden> wrote:
> Glad you asked. The 4th option: Bindings. Bind the enabled state of all
> your relevant controls to the "locked" state (with the NSNegateBoolean
> value transformer to flip the state).

Nice.  Not actually less work than my option 1, but a bit 'cleaner'.  (And
I don't have to create outlets for all of them if I don't need to...)
Thanks for the pointer.

No less work? How so? You create a controller, bind it to your model. You then bind any controls to the appropriate state key. No outlets, no lines of code. That's significantly less work (provided you're using IB).

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Disabling items in NSTabView
      • From: "Daniel T. Staal" <email@hidden>
References: 
 >Disabling items in NSTabView (From: "Daniel T. Staal" <email@hidden>)
 >Re: Disabling items in NSTabView (From: "I. Savant" <email@hidden>)
 >Re: Disabling items in NSTabView (From: "Daniel T. Staal" <email@hidden>)

  • Prev by Date: Re: Disabling items in NSTabView
  • Next by Date: Re: Disabling items in NSTabView
  • Previous by thread: Re: Disabling items in NSTabView
  • Next by thread: Re: Disabling items in NSTabView
  • Index(es):
    • Date
    • Thread