Re: Disabling menu item
Re: Disabling menu item
- Subject: Re: Disabling menu item
- From: Graham Cox <email@hidden>
- Date: Tue, 12 May 2009 15:08:33 +1000
On 11/05/2009, at 4:53 PM, Nikhil Khandelwal wrote:
I want to disable the complete menu item means it should not show
any submenu when clicked on. Like in any application if I disable
the file menu it should get disabled and not show any submenu
related to it.
If the parent item of a submenu is disabled, it doesn't show the
submenu. So you could detect when all items in the menu were disabled
and disable the parent, but this isn't done as standard - the usual UI
is that a submenu's parent is always available even if it doesn't lead
to anything you can actually choose. I guess this reflects the "road
map" paradigm of menus as explained in the HIG.
--Graham
_______________________________________________
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