Important: The information in this document is obsolete and should not be used for new development.
(informal protocol)
Package | com.apple.cocoa.application |
Companion guide |
This interface allows your application to update the enabled or disabled status of an NSMenuItem. It declares only one method, validateMenuItem
.
public abstract boolean validateMenuItem
(_NSObsoleteMenuItemProtocol menuItem)
Implemented to override the default action of enabling or disabling menuItem. The object implementing this method must be the target of menuItem. It returns true
to enable menuItem, false
to disable it. You can determine which menu item menuItem is by querying it for its tag or action.
© 1997, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-01)