• 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 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


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

  • Prev by Date: Re: memory mgmt in convenience and accessor methods
  • Next by Date: [MEET] June CocoaHeads Meetings
  • Previous by thread: Disabling items in NSTabView
  • Next by thread: Re: Disabling items in NSTabView
  • Index(es):
    • Date
    • Thread