Re: How to disable a tab of NSTabView?
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