Re: Disabling items in NSTabView
Re: Disabling items in NSTabView
- Subject: Re: Disabling items in NSTabView
- From: "I. Savant" <email@hidden>
- Date: Tue, 29 May 2007 15:02:49 -0400
On 5/29/07, Daniel T. Staal <email@hidden> wrote:
1: Manually disable every item that is placed on any tab in the NSTabView.
Barring the 4th option I'll mention below, I'd say this is the most
common approach. Nothing wrong with it at all, really.
2: Replace the NSTabView with a look-alike (maybe just an image) that is
disabled.
Eeew.
3: Say 'Fuck it' and just hide the whole thing unless the file is unlocked.
As an aside, let's keep the more vulgar cursing for another list.
There are younger subscribers on this particular one. In response to
the point itself, you could do this, but I'm a firm believer in
showing the potential, despite the state, if you get my meaning.
#1 would work, but is a lot of manual work and looks to be an
invitation to bug city. (All I have to do is forget one someplace...)
Not really, no. Factor it out into a single method like
"-setEditorControlsEnabled:".
Can anyone here think of a better idea? Is there a good way to get a list
of all the controls on an NSTabView?
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).
--
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