• 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: Disable a menu (item)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable a menu (item)


  • Subject: Re: Disable a menu (item)
  • From: Markus Hitter <email@hidden>
  • Date: Mon, 10 Dec 2001 23:56:53 +0100

Am Montag den, 10. Dezember 2001, um 21:20, schrieb Matt Neuburg:

I'd like to disable the File menu. I see how to disable all its menu items by disabling the File menu item of the main menubar. What I don't see is how to make the word "File" itself be grayed out.

Two ways:

1) remove the action method and the corresponding item will be grayed automatically. You might want to store a pointer to the method to add it again later.

2) disable the automatic disable detection, then disable it manually
( [... setEnabled:NO] ).


Details for both see NSMenu and NSMenuItem.


Have fun,

Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/


References: 
 >Disable a menu (item) (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: notification AFTER dockMenu is shown
  • Next by Date: Re: Cocoa & signal handlers
  • Previous by thread: Disable a menu (item)
  • Next by thread: Re: Disable a menu (item)
  • Index(es):
    • Date
    • Thread