• 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: How to disable a tab of NSTabView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disable a tab of NSTabView?


  • Subject: Re: How to disable a tab of NSTabView?
  • From: Sherm Pendley <email@hidden>
  • Date: Fri, 19 Oct 2007 04:43:07 -0400

On Oct 19, 2007, at 4:11 AM, norio wrote:

Hi guys,

I'd like to disable a tab of NSTabView.
I went see NSTabView and NSTabViewItem, but I couldn't find out how.
Any suggestions would be appreciated.

Whenever you need to modify the behavior of a standard widget, it's a good idea to see if it accepts a delegate object, and if so, what delegate methods are available.


In this case, what you want to do is implement the delegate method - tabView:shouldSelectTabViewItem:, and return NO whenever selecting the referenced tab view item wouldn't be appropriate.

sherm--


Web Hosting by West Virginians, for West Virginians: http://wv-www.net Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >How to disable a tab of NSTabView? (From: norio <email@hidden>)

  • Prev by Date: Re: Resizing NSWindows and NSViews with NSViewAnimation
  • Next by Date: Re: Problems with bindings and "continuously updates"
  • Previous by thread: How to disable a tab of NSTabView?
  • Next by thread: Localizing Inside a Spotlight Importer
  • Index(es):
    • Date
    • Thread