Return to the Alphabetic Index
Return to the Class Browser
Return to the Picture Browser
Copyright (c) 1994 by NeXT Computer, Inc. All Rights
Reserved.
NSMenuCell
Inherits From: NSButtonCell : NSActionCell : NSCell : NSObject
Conforms To: NSCoding, NSCopying (NSCell)
NSObject (NSObject)
Declared In: AppKit/NSMenuCell.h
Class Description
NSMenuCell is a subclass of NSButtonCell that defines objects that are used in
menus. NSMenuCells draw their text left-justified and show an optional key
equivalent or submenu arrow on the right. See the NSMenu class specification
for more information.
Checking for a Submenu
- - (BOOL)hasSubmenu Returns YES if the receiver has a submenu.
Managing User Key Equivalents
- + (void)setUsesUserKeyEquivalents:(BOOL)flag If flag is
YES, NSMenuCells conform to user preferences for key equivalents; otherwise,
the key equivalents originally assigned to the NSMenuCells are used.
- + (BOOL)usesUserKeyEquivalents Returns YES if NSMenuCells conform to
user preferences for key equivalents; otherwise, returns NO.
- - (NSString *)userKeyEquivalent Returns the user-assigned key equivalent
for the NSMenuCell.