• 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
How to disable application menu bar item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to disable application menu bar item


  • Subject: How to disable application menu bar item
  • From: Ashish Tiwari <email@hidden>
  • Date: Thu, 21 May 2009 18:06:34 +0530
  • Acceptlanguage: en-US, en-IN
  • Thread-topic: How to disable application menu bar item

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.

Thanks in advance.
Ashish
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
_______________________________________________

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

  • Follow-Ups:
    • Re: How to disable application menu bar item
      • From: Graham Cox <email@hidden>
    • Re: How to disable application menu bar item
      • From: Benjamin Dobson <email@hidden>
  • Prev by Date: Re: Network Reachability APIs
  • Next by Date: Re: Escaping white space in an NSString
  • Previous by thread: Re: problems with inspector window
  • Next by thread: Re: How to disable application menu bar item
  • Index(es):
    • Date
    • Thread