• 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 NSTabViewItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling NSTabViewItem


  • Subject: Re: Disabling NSTabViewItem
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 20 Feb 2002 19:32:30 -0800

On Wednesday, February 20, 2002, at 11:23 AM, Georg Tuparev wrote:

Folks,

Is it possible to disable a NSTabViewItem object? I know I can remove it temporary from the TabView, and I know that I can implement in NSTabView's delegate

- (BOOL)tabView:(NSTabView *)tabView shouldSelectTabViewItem:(NSTabViewItem *)tabViewItem method

... but both option look extremely ugly (at least in my case).


Georg,

Per the "least surprise" principle, I would recommend that you not disable a Tab, even if everything in that tab is disabled. You should let the user see what controls exist, even if they're not pertinent at the moment. You'll notice (for example) that submenus still open, even if all of their items are disabled.

-jcr


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Disabling NSTabViewItem
      • From: Dan Wood <email@hidden>
References: 
 >Disabling NSTabViewItem (From: Georg Tuparev <email@hidden>)

  • Prev by Date: RE: Apps crashs when clicking on menu [OT]
  • Next by Date: Setting up an 'About' window
  • Previous by thread: Disabling NSTabViewItem
  • Next by thread: Re: Disabling NSTabViewItem
  • Index(es):
    • Date
    • Thread