NSMenu

Authors

Fred Kiefer( FredKiefer@gmx.de )
David Lazaro Saz( khelekir@encomix.es )
Michael Hanni( mhanni@sprintmail.com )
Felipe A. Rodriguez( far@ix.netcom.com )
Ovidiu Predescu( ovidiu@net-community.com )

Copyright: (C) 1999 Free Software Foundation, Inc.

Software documentation for the NSMenu class

NSMenu : NSObject

Declared: AppKit/NSMenu.h
Conform: NSCoding
Conform: NSCopying

menuZone

+ (NSZone*) menuZone;


popUpContextMenu:withEvent:forView:

+ (void) popUpContextMenu: (NSMenu*)menu withEvent: (NSEvent*)event forView: (NSView*)view;


setMenuZone:

+ (void) setMenuZone: (NSZone*)zone;


addItem:

- (void) addItem: (id)newItem;


addItemWithTitle:action:keyEquivalent:

- (id) addItemWithTitle: (NSString*)aString action: (SEL)aSelector keyEquivalent: (NSString*)keyEquiv;


attachedMenu

- (NSMenu*) attachedMenu;


autoenablesItems

- (BOOL) autoenablesItems;


helpRequested:

- (void) helpRequested: (NSEvent*)event;


indexOfItem:

- (int) indexOfItem: (id)anObject;


indexOfItemWithRepresentedObject:

- (int) indexOfItemWithRepresentedObject: (id)anObject;


indexOfItemWithSubmenu:

- (int) indexOfItemWithSubmenu: (NSMenu*)anObject;


indexOfItemWithTag:

- (int) indexOfItemWithTag: (int)aTag;


indexOfItemWithTarget:andAction:

- (int) indexOfItemWithTarget: (id)anObject andAction: (SEL)actionSelector;


indexOfItemWithTitle:

- (int) indexOfItemWithTitle: (NSString*)aTitle;


initWithTitle:

- (id) initWithTitle: (NSString*)aTitle;


insertItem:atIndex:

- (void) insertItem: (id)newItem atIndex: (int)index;


insertItemWithTitle:action:keyEquivalent:atIndex:

- (id) insertItemWithTitle: (NSString*)aString action: (SEL)aSelector keyEquivalent: (NSString*)charCode atIndex: (unsigned int)index;


isAttached

- (BOOL) isAttached;


isTornOff

- (BOOL) isTornOff;


itemArray

- (NSArray*) itemArray;


itemAtIndex:

- (id) itemAtIndex: (int)index;


itemChanged:

- (void) itemChanged: (id)anObject;


itemWithTag:

- (id) itemWithTag: (int)aTag;


itemWithTitle:

- (id) itemWithTitle: (NSString*)aString;


locationForSubmenu:

- (NSPoint) locationForSubmenu: (NSMenu*)aSubmenu;


menuChangedMessagesEnabled

- (BOOL) menuChangedMessagesEnabled;


menuRepresentation

- (id) menuRepresentation;


numberOfItems

- (int) numberOfItems;


performActionForItemAtIndex:

- (void) performActionForItemAtIndex: (int)index;


performKeyEquivalent:

- (BOOL) performKeyEquivalent: (NSEvent*)theEvent;


removeItem:

- (void) removeItem: (id)anItem;


removeItemAtIndex:

- (void) removeItemAtIndex: (int)index;


setAutoenablesItems:

- (void) setAutoenablesItems: (BOOL)flag;


setMenuChangedMessagesEnabled:

- (void) setMenuChangedMessagesEnabled: (BOOL)flag;


setMenuRepresentation:

- (void) setMenuRepresentation: (id)menuRep;


setSubmenu:forItem:

- (void) setSubmenu: (NSMenu*)aMenu forItem: (id)anItem;


setSupermenu:

- (void) setSupermenu: (NSMenu*)supermenu;


setTitle:

- (void) setTitle: (NSString*)aTitle;


sizeToFit

- (void) sizeToFit;


submenuAction:

- (void) submenuAction: (id)sender;


supermenu

- (NSMenu*) supermenu;


title

- (NSString*) title;


update

- (void) update;


Software documentation for the NSMenu(GNUstepExtra) category

NSMenu(GNUstepExtra)

Declared: AppKit/NSMenu.h

_ownedByPopUp

- (BOOL) _ownedByPopUp;


_rightMouseDisplay:

- (void) _rightMouseDisplay: (NSEvent*)theEvent;


_setOwnedByPopUp:

- (void) _setOwnedByPopUp: (NSPopUpButtonCell*)popUp;


close

- (void) close;


closeTransient

- (void) closeTransient;


display

- (void) display;


displayTransient

- (void) displayTransient;


isFollowTransient

- (BOOL) isFollowTransient;


isPartlyOffScreen

- (BOOL) isPartlyOffScreen;


nestedCheckOffScreen

- (void) nestedCheckOffScreen;


nestedSetFrameOrigin:

- (void) nestedSetFrameOrigin: (NSPoint)aPoint;


shiftOnScreen

- (void) shiftOnScreen;


window

- (NSWindow*) window;


Software documentation for the NSObject(NSMenuActionResponder) category

NSObject(NSMenuActionResponder)

Declared: AppKit/NSMenu.h

validateMenuItem:

- (BOOL) validateMenuItem: (NSMenuItem*)aMenuItem;