Re: Disabling NSTabViewItem
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.