• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to disable application menu bar item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disable application menu bar item


  • Subject: Re: How to disable application menu bar item
  • From: Benjamin Dobson <email@hidden>
  • Date: Thu, 21 May 2009 14:18:12 +0100


On 21 May 2009, at 13:36:34, Ashish Tiwari wrote:

Hi All,

I want to conditionally disable some items of my application menu bar for example "Format", "Insert" etc, so that user can not click on it and can not see its submenu.
When i do following:
[[[NSApp mainMenu] itemWithTitle:@"Insert"] setEnabled:NO];


Menu item "Insert" in menu bar still appears enabled but all items in its submenu get disabled. Basically my purpose is solved as user can not select any of sub menu items
but i want "Insert" itself to be disabled so that user can not even see its submenu.
Is it possible in Mac (Windows it can be done)?
If yes, then How can i do so.

Why?

It is explicitly against the Apple Human Interface Guidelines to prevent a user from seeing submenus, even if all of the items in the menu are disabled. Why go against it?

And I don't believe it can be done for menu bar items. It would look terrible, too.
_______________________________________________


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


References: 
 >How to disable application menu bar item (From: Ashish Tiwari <email@hidden>)

  • Prev by Date: Re: Escaping white space in an NSString
  • Next by Date: Re: How to disable application menu bar item
  • Previous by thread: How to disable application menu bar item
  • Next by thread: Re: How to disable application menu bar item
  • Index(es):
    • Date
    • Thread