Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disable a tab of NSTabView?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.