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 (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com