Re: Disabling items in NSTabView
Re: Disabling items in NSTabView
- Subject: Re: Disabling items in NSTabView
- From: "Daniel T. Staal" <email@hidden>
- Date: Tue, 29 May 2007 16:16:22 -0400 (EDT)
- Importance: Normal
On Tue, May 29, 2007 4:03 pm, I. Savant said:
> 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).
It's still one binding per object and (the most important part in my
'work' estimation) one call on the human behind the keyboard to remember
to do it.
Daniel T. Staal
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
_______________________________________________
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