• 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: Enable or Disable menuitem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enable or Disable menuitem


  • Subject: Re: Enable or Disable menuitem
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 27 Dec 2007 21:03:12 +0000

Look at the -validateMenuItem: method of NSObject. You'll want to implement it for some object in the responder chain of your app, normally a window controller or perhaps the app delegate.

Mike.

On 27 Dec 2007, at 20:47, Eric PETIT wrote:

I want to enable or disable one menuitem of one menu of my application menubar according to the value of a Boolean variable.
How to reach a menuitem of a menu of the application menubar ?
When I reached it, how to enable or disable it ?
Tanks


Eric PETIT
_______________________________________________

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

_______________________________________________

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: 
 >Enable or Disable menuitem (From: Eric PETIT <email@hidden>)

  • Prev by Date: Enable or Disable menuitem
  • Next by Date: Re: Enable or Disable menuitem
  • Previous by thread: Enable or Disable menuitem
  • Next by thread: Re: Enable or Disable menuitem
  • Index(es):
    • Date
    • Thread