Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enable or Disable menuitem




On Dec 27, 2007, at 12:47 PM, 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 ?


You typically don't "reach" it, you implement the relevant validation method in its target.
<http://developer.apple.com/documentation/Cocoa/Conceptual/MenuList/Articles/EnablingMenuItems.html >


mmalc

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Enable or Disable menuitem (From: Eric PETIT <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.