[Previous]
[Up]
[Next]
NSMenu
Authors
- Richard Frith-Macdonald
-
Version: $Revision$
Date: $Date$
Declared in: Gui/NSMenu.h
Inherits from: NSObject
Conforms to: NSCoding
Instance Variables
Methods
Class Methods
+ (NSZone*) menuZone;
+ (void) setMenuZone: (NSZone*)zone;
Instances Methods
- (void) addItem: (id<NSMenuItem>)newItem;
- (id<NSMenuItem>) addItemWithTitle: (NSString*)aString action: (SEL)aSelector keyEquivalent: (NSString*)keyEquiv;
- (NSMenu*) attachedMenu;
- (BOOL) autoenablesItems;
- (id) contextMenuRepresentation;
- (void) helpRequested: (NSEvent*)event;
- (int) indexOfItem: (id<NSMenuItem>)anObject;
- (int) indexOfItemWithRepresentedObject: (id)anObject;
- (int) indexOfItemWithSubmenu: (NSMenu*)anObject;
- (int) indexOfItemWithTag: (int)aTag;
- (int) indexOfItemWithTarget: (id)anObject andAction: (SEL)actionSelector;
- (int) indexOfItemWithTitle: (NSString*)aTitle;
- (id) initWithTitle: (NSString*)aTitle;
- (void) insertItem: (id<NSMenuItem>)newItem;
- (id<NSMenuItem>) insertItemWithTitle: (NSString*)aString action: (SEL)aSelector keyEquivalent: (NSString*)keyEquiv;
- (BOOL) isAttached;
- (BOOL) isTornOff;
- (NSArray*) itemArray;
- (id<NSMenuItem>) itemAtIndex: (int)index;
- (void) itemChanged: (id<NSMenuItem>)anObject;
- (id<NSMenuItem>) itemWithTag: (int)aTag;
- (id<NSMenuItem>) itemWithTitle: (NSString*)aString;
- (NSPoint) locationForSubmenu: (NSMenu*)aSubmenu;
- (BOOL) menuChangedMessagesEnabled;
- (id) menuRepresentation;
- (int) numberOfItems;
- (void) performActionForItemAtIndex: (int)index;
- (BOOL) performKeyEquivalent: (NSEvent*)theEvent;
- (void) removeItem: (id<NSMenuItem>)anItem;
- (void) removeItemAtIndex: (int)index;
- (void) setAutoenablesItems: (BOOL)flag;
- (void) setContextMenuRepresentation: (id)menuRep;
- (void) setMenuChangedMessagesEnabled: (BOOL)flag;
- (void) setMenuRepresentation: (id)menuRep;
- (void) setSubmenu: (NSMenu*)aMenu forItem: (id<NSMenuItem>)anItem;
- (void) setSupermenu: (NSMenu*)supermenu;
- (void) setTearOffMenuRepresentation: (id)menuRep;
- (void) setTitle: (NSString*)aString;
- (void) sizeToFit;
- (void) submenuAction: (id)sender;
- (NSMenu*) supermenu;
- (id) tearOffMenuRepresentation;
- (NSString*) title;
- (void) update;