How to disable a tab of NSTabView?

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

    Thanks,
    Norio Ota
  • 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
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today