org.rococoa.cocoa.appkit
Class NSMenu

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSMenu
All Implemented Interfaces:
NSCoding, NSCopying, NSObject, ObjCObject

public abstract class NSMenu
extends NSObject
implements ObjCObject, NSCopying, NSCoding

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSMenu.__mFlags
           
static class NSMenu._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
NSCopying._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
NSCoding._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSMenu()
           
 
Method Summary
abstract  void addItem(NSMenuItem newItem)
          Appends an item to the end of the menu.
abstract  NSMenuItem addItemWithTitle_action_keyEquivalent(NSString aString, Selector aSelector, NSString charCode)
          Appends a new menu item with the given properties to the end of the menu.
static NSMenu alloc()
           
abstract  boolean allowsContextMenuPlugIns()
          Determines whether contextual menu plugins may be appended to the menu, if used as a context menu.
 NSSubmenuAction as_NSMenu_NSSubmenuAction()
           
abstract  boolean autoenablesItems()
          Original signature : -(BOOL)autoenablesItems
native declaration : NSMenu.h:129
abstract  void cancelTracking()
          Dismisses the menu and ends all menu tracking
Original signature : -(void)cancelTracking
native declaration : NSMenu.h:155
abstract  void cancelTrackingWithoutAnimation()
          Dismisses the menu immediately, without any fade or other effect, and ends all menu tracking
Original signature : -(void)cancelTrackingWithoutAnimation
native declaration : NSMenu.h:158
static NSMenu createWithTitle(NSString aTitle)
          Factory method
abstract  NSMenuDelegate delegate()
          Original signature : -(id)delegate
native declaration : NSMenu.h:148
abstract  NSFont font()
          Sets the font for the menu.
static NSMenu._class_ getNSClass()
           
abstract  void helpRequested(NSEvent eventPtr)
          Original signature : -(void)helpRequested:(NSEvent*)
native declaration : NSMenu.h:192
abstract  NSMenuItem highlightedItem()
          Returns the highlighted item in the menu, or nil if no item in the menu is highlighted
Original signature : -(NSMenuItem*)highlightedItem
native declaration : NSMenu.h:161
abstract  NSInteger indexOfItem(NSMenuItem index)
          Returns the index of the item in the menu, or -1 if the item is not present in the menu
Original signature : -(NSInteger)indexOfItem:(NSMenuItem*)
native declaration : NSMenu.h:114
abstract  NSInteger indexOfItemWithRepresentedObject(ObjCObject object)
          Original signature : -(NSInteger)indexOfItemWithRepresentedObject:(id)
native declaration : NSMenu.h:119
abstract  NSInteger indexOfItemWithSubmenu(NSMenu submenu)
          Original signature : -(NSInteger)indexOfItemWithSubmenu:(NSMenu*)
native declaration : NSMenu.h:120
abstract  NSInteger indexOfItemWithTag(NSInteger aTag)
          Original signature : -(NSInteger)indexOfItemWithTag:(NSInteger)
native declaration : NSMenu.h:118
abstract  NSInteger indexOfItemWithTarget_andAction(ObjCObject target, Selector actionSelector)
          Original signature : -(NSInteger)indexOfItemWithTarget:(id) andAction:(SEL)
native declaration : NSMenu.h:121
abstract  NSInteger indexOfItemWithTitle(NSString aTitle)
          Returns the first item in the menu that matches the given property, or -1 if no item in the menu matches.
abstract  NSMenu initWithTitle(NSString aTitle)
          Designated initializer.
abstract  void insertItem_atIndex(NSMenuItem newItem, NSInteger index)
          Inserts a menu item at the given index, which must be at least zero and no more than the receiver's item count.
abstract  NSMenuItem insertItemWithTitle_action_keyEquivalent_atIndex(NSString aString, Selector aSelector, NSString charCode, NSInteger index)
          Inserts a new menu item with the given title, action, and key equivalent, at the given index.
abstract  boolean isTornOff()
          Original signature : -(BOOL)isTornOff
native declaration : NSMenu.h:193
abstract  NSArray itemArray()
          Returns an array containing the receiver's menu items.
abstract  NSMenuItem itemAtIndex(NSInteger index)
          Returns the item at the given index, which must be at least zero and less than the number of items.
abstract  void itemChanged(NSMenuItem item)
          This method is called when a menu item's enabled state, submenu, title, attributed title, image, key equivalent, key equivalent modifier mask, alternate status, indent, tooltip, view, or visibility (via isHidden) changes.
abstract  NSMenuItem itemWithTag(NSInteger tag)
          Original signature : -(NSMenuItem*)itemWithTag:(NSInteger)
native declaration : NSMenu.h:125
abstract  NSMenuItem itemWithTitle(NSString aTitle)
          Returns the first item in the menu with the given property, or nil if no item in the menu matches.
abstract  org.rococoa.cocoa.CGFloat menuBarHeight()
          If called on the main menu, returns the height of the menu bar in pixels.
static boolean menuBarVisible()
          Original signature : +(BOOL)menuBarVisible
native declaration : NSMenu.h:70
abstract  boolean menuChangedMessagesEnabled()
          Original signature : -(BOOL)menuChangedMessagesEnabled
native declaration : NSMenu.h:191
static Pointer menuZone()
          Returns the zone used to allocate NSMenu objects.
abstract  org.rococoa.cocoa.CGFloat minimumWidth()
          Set the minimum width of the menu, in screen coordinates.
static NSMenu new_()
           
abstract  NSInteger numberOfItems()
          Returns the number of menu items in the menu.
abstract  void performActionForItemAtIndex(NSInteger index)
          Triggers the action for the item at the given index in the receiver.
abstract  boolean performKeyEquivalent(NSEvent theEvent)
          Attempts to perform the given key equivalent.
static void popUpContextMenu_withEvent_forView_withFont(NSMenu menu, NSEvent event, NSView view, NSFont font)
          Original signature : +(void)popUpContextMenu:(NSMenu*) withEvent:(NSEvent*) forView:(NSView*) withFont:(NSFont*)
native declaration : NSMenu.h:62
static void popUpContextMenu_withEvent_forView(NSMenu menu, NSEvent event, NSView view)
          Original signature : +(void)popUpContextMenu:(NSMenu*) withEvent:(NSEvent*) forView:(NSView*)
native declaration : NSMenu.h:61
abstract  void removeAllItems()
          Removes all items.
abstract  void removeItem(NSMenuItem item)
          Removes the item from the menu.
abstract  void removeItemAtIndex(NSInteger index)
          Removes the item at the given index, which must be at least zero and less than the number of items.
abstract  void setAllowsContextMenuPlugIns(boolean allows)
          Original signature : -(void)setAllowsContextMenuPlugIns:(BOOL)
native declaration : NSMenu.h:180
abstract  void setAutoenablesItems(boolean flag)
          Set and get whether the menu autoenables items.
abstract  void setDelegate(NSMenuDelegate anObject)
          Set and get the delegate for the menu.
abstract  void setFont(NSFont font)
          Original signature : -(void)setFont:(NSFont*)
native declaration : NSMenu.h:175
static void setMenuBarVisible(boolean visible)
          Determines whether the menu bar is visible for this application.
abstract  void setMenuChangedMessagesEnabled(boolean flag)
          In SnowLeopard, the following methods no longer do anything useful.
abstract  void setMinimumWidth(org.rococoa.cocoa.CGFloat width)
          Original signature : -(void)setMinimumWidth:(CGFloat)
native declaration : NSMenu.h:166
abstract  void setShowsStateColumn(boolean showsState)
          Determines whether the menu contains a column for the state image.
abstract  void setSubmenu_forItem(NSMenu aMenu, NSMenuItem anItem)
          Same as [anItem setSubmenu:aMenu].
abstract  void setSupermenu(NSMenu supermenu)
          If a menu item has the receiver as a submenu, then this method will be called when the menu containing that item changes.
abstract  void setTitle(NSString aString)
          Set and get the menu's title.
abstract  boolean showsStateColumn()
          Original signature : -(BOOL)showsStateColumn
native declaration : NSMenu.h:184
abstract  NSObject size()
          Returns the size of the menu, in screen coordinates.
abstract  NSMenu supermenu()
          Returns the menu containing the item that has the receiver as a submenu, or nil if this menu is not the submenu of an item in a menu.
abstract  NSString title()
          Original signature : -(NSString*)title
native declaration : NSMenu.h:54
abstract  void update()
          If the receiver is set to autoenable items, then this triggers autovalidation of all menu items according to the NSMenuValidation informal protocol; otherwise this does nothing.
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
copyWithZone
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCoding
encodeWithCoder, initWithCoder
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSMenu

public NSMenu()
Method Detail

as_NSMenu_NSSubmenuAction

public NSSubmenuAction as_NSMenu_NSSubmenuAction()

initWithTitle

public abstract NSMenu initWithTitle(NSString aTitle)
Designated initializer. If this menu is used as a submenu of an item in the application's main menu, then the title is what appears in the menu bar. Otherwise, the title is ignored. Do not pass nil (an exception will result), but you may pass an empty string.
Original signature : -(id)initWithTitle:(NSString*)
native declaration : NSMenu.h:50


createWithTitle

public static NSMenu createWithTitle(NSString aTitle)
Factory method

See Also:
initWithTitle(org.rococoa.cocoa.foundation.NSString)

setTitle

public abstract void setTitle(NSString aString)
Set and get the menu's title. The titles of the submenus of the application's main menu items appear in the menu bar.
Original signature : -(void)setTitle:(NSString*)
native declaration : NSMenu.h:53


title

public abstract NSString title()
Original signature : -(NSString*)title
native declaration : NSMenu.h:54


popUpContextMenu_withEvent_forView

public static void popUpContextMenu_withEvent_forView(NSMenu menu,
                                                      NSEvent event,
                                                      NSView view)
Original signature : +(void)popUpContextMenu:(NSMenu*) withEvent:(NSEvent*) forView:(NSView*)
native declaration : NSMenu.h:61


popUpContextMenu_withEvent_forView_withFont

public static void popUpContextMenu_withEvent_forView_withFont(NSMenu menu,
                                                               NSEvent event,
                                                               NSView view,
                                                               NSFont font)
Original signature : +(void)popUpContextMenu:(NSMenu*) withEvent:(NSEvent*) forView:(NSView*) withFont:(NSFont*)
native declaration : NSMenu.h:62


setMenuBarVisible

public static void setMenuBarVisible(boolean visible)
Determines whether the menu bar is visible for this application. Users cannot access the menu bar unless it is visible. It is visible by default.
Original signature : +(void)setMenuBarVisible:(BOOL)
native declaration : NSMenu.h:69


menuBarVisible

public static boolean menuBarVisible()
Original signature : +(BOOL)menuBarVisible
native declaration : NSMenu.h:70


supermenu

public abstract NSMenu supermenu()
Returns the menu containing the item that has the receiver as a submenu, or nil if this menu is not the submenu of an item in a menu.
Original signature : -(NSMenu*)supermenu
native declaration : NSMenu.h:73


setSupermenu

public abstract void setSupermenu(NSMenu supermenu)
If a menu item has the receiver as a submenu, then this method will be called when the menu containing that item changes. You should never call this, but you may override it to take some action when the supermenu changes.
Original signature : -(void)setSupermenu:(NSMenu*)
native declaration : NSMenu.h:76


insertItem_atIndex

public abstract void insertItem_atIndex(NSMenuItem newItem,
                                        NSInteger index)
Inserts a menu item at the given index, which must be at least zero and no more than the receiver's item count. If newItem is nil, this raises an exception.
Original signature : -(void)insertItem:(NSMenuItem*) atIndex:(NSInteger)
native declaration : NSMenu.h:79


addItem

public abstract void addItem(NSMenuItem newItem)
Appends an item to the end of the menu. A nil item will raise an exception.
Original signature : -(void)addItem:(NSMenuItem*)
native declaration : NSMenu.h:82


insertItemWithTitle_action_keyEquivalent_atIndex

public abstract NSMenuItem insertItemWithTitle_action_keyEquivalent_atIndex(NSString aString,
                                                                            Selector aSelector,
                                                                            NSString charCode,
                                                                            NSInteger index)
Inserts a new menu item with the given title, action, and key equivalent, at the given index. The index must be at least zero and no more than the receiver's item count. The title and key equivalent must not be nil (pass the empty string to indicate no key equivalent). This returns the new item.
Original signature : -(NSMenuItem*)insertItemWithTitle:(NSString*) action:(SEL) keyEquivalent:(NSString*) atIndex:(NSInteger)
native declaration : NSMenu.h:86


addItemWithTitle_action_keyEquivalent

public abstract NSMenuItem addItemWithTitle_action_keyEquivalent(NSString aString,
                                                                 Selector aSelector,
                                                                 NSString charCode)
Appends a new menu item with the given properties to the end of the menu.
Original signature : -(NSMenuItem*)addItemWithTitle:(NSString*) action:(SEL) keyEquivalent:(NSString*)
native declaration : NSMenu.h:89


removeItemAtIndex

public abstract void removeItemAtIndex(NSInteger index)
Removes the item at the given index, which must be at least zero and less than the number of items. All subsequent items will shift down one index.
Original signature : -(void)removeItemAtIndex:(NSInteger)
native declaration : NSMenu.h:92


removeItem

public abstract void removeItem(NSMenuItem item)
Removes the item from the menu. If the item is nil, or is not present in the receiver, an exception will be raised.
Original signature : -(void)removeItem:(NSMenuItem*)
native declaration : NSMenu.h:95


setSubmenu_forItem

public abstract void setSubmenu_forItem(NSMenu aMenu,
                                        NSMenuItem anItem)
Same as [anItem setSubmenu:aMenu]. anItem may not be nil.
Original signature : -(void)setSubmenu:(NSMenu*) forItem:(NSMenuItem*)
native declaration : NSMenu.h:98


removeAllItems

public abstract void removeAllItems()
Removes all items. This is more efficient than removing items one by one. This does not post NSMenuDidRemoveItemNotification, for efficiency.
Original signature : -(void)removeAllItems
native declaration : NSMenu.h:102


itemArray

public abstract NSArray itemArray()
Returns an array containing the receiver's menu items.
Original signature : -(NSArray*)itemArray
native declaration : NSMenu.h:105


numberOfItems

public abstract NSInteger numberOfItems()
Returns the number of menu items in the menu.
Original signature : -(NSInteger)numberOfItems
native declaration : NSMenu.h:108


itemAtIndex

public abstract NSMenuItem itemAtIndex(NSInteger index)
Returns the item at the given index, which must be at least zero and less than the number of items.
Original signature : -(NSMenuItem*)itemAtIndex:(NSInteger)
native declaration : NSMenu.h:111


indexOfItem

public abstract NSInteger indexOfItem(NSMenuItem index)
Returns the index of the item in the menu, or -1 if the item is not present in the menu
Original signature : -(NSInteger)indexOfItem:(NSMenuItem*)
native declaration : NSMenu.h:114


indexOfItemWithTitle

public abstract NSInteger indexOfItemWithTitle(NSString aTitle)
Returns the first item in the menu that matches the given property, or -1 if no item in the menu matches.
Original signature : -(NSInteger)indexOfItemWithTitle:(NSString*)
native declaration : NSMenu.h:117


indexOfItemWithTag

public abstract NSInteger indexOfItemWithTag(NSInteger aTag)
Original signature : -(NSInteger)indexOfItemWithTag:(NSInteger)
native declaration : NSMenu.h:118


indexOfItemWithRepresentedObject

public abstract NSInteger indexOfItemWithRepresentedObject(ObjCObject object)
Original signature : -(NSInteger)indexOfItemWithRepresentedObject:(id)
native declaration : NSMenu.h:119


indexOfItemWithSubmenu

public abstract NSInteger indexOfItemWithSubmenu(NSMenu submenu)
Original signature : -(NSInteger)indexOfItemWithSubmenu:(NSMenu*)
native declaration : NSMenu.h:120


indexOfItemWithTarget_andAction

public abstract NSInteger indexOfItemWithTarget_andAction(ObjCObject target,
                                                          Selector actionSelector)
Original signature : -(NSInteger)indexOfItemWithTarget:(id) andAction:(SEL)
native declaration : NSMenu.h:121


itemWithTitle

public abstract NSMenuItem itemWithTitle(NSString aTitle)
Returns the first item in the menu with the given property, or nil if no item in the menu matches.
Original signature : -(NSMenuItem*)itemWithTitle:(NSString*)
native declaration : NSMenu.h:124


itemWithTag

public abstract NSMenuItem itemWithTag(NSInteger tag)
Original signature : -(NSMenuItem*)itemWithTag:(NSInteger)
native declaration : NSMenu.h:125


setAutoenablesItems

public abstract void setAutoenablesItems(boolean flag)
Set and get whether the menu autoenables items. If a menu autoenables items, then calls to -[NSMenuItem setEnabled:] are ignored, and the enabled state is computed via the NSMenuValidation informal protocol below. Autoenabling is on by default.
Original signature : -(void)setAutoenablesItems:(BOOL)
native declaration : NSMenu.h:128


autoenablesItems

public abstract boolean autoenablesItems()
Original signature : -(BOOL)autoenablesItems
native declaration : NSMenu.h:129


update

public abstract void update()
If the receiver is set to autoenable items, then this triggers autovalidation of all menu items according to the NSMenuValidation informal protocol; otherwise this does nothing. It is normally not necessary to call this; it will be called for you at the right time.
Original signature : -(void)update
native declaration : NSMenu.h:132


performKeyEquivalent

public abstract boolean performKeyEquivalent(NSEvent theEvent)
Attempts to perform the given key equivalent. If the event is a key down event that matches the key equivalent of a menu item in the receiver or, recursively, any menu item in a submenu of the receiver, then this triggers that menu item's action and returns YES. Otherwise, this returns NO.
Original signature : -(BOOL)performKeyEquivalent:(NSEvent*)
native declaration : NSMenu.h:136


itemChanged

public abstract void itemChanged(NSMenuItem item)
This method is called when a menu item's enabled state, submenu, title, attributed title, image, key equivalent, key equivalent modifier mask, alternate status, indent, tooltip, view, or visibility (via isHidden) changes. This method posts NSMenuDidChangeItemNotification. Future properties will likely not call this method when they change, because posting a notification when a property changes is rather expensive.
Original signature : -(void)itemChanged:(NSMenuItem*)
native declaration : NSMenu.h:140


performActionForItemAtIndex

public abstract void performActionForItemAtIndex(NSInteger index)
Triggers the action for the item at the given index in the receiver. This is useful as both an override point and something you may call directly. As an override point, this is called when the user chooses the item during normal menu tracking; subclassers can override it to take some different action. If you call it directly, it triggers the action for that item. In SnowLeopard and later, calling it directly will also highlight the menu (if present in the main menu) and trigger accessibility notifications, including VoiceOver speaking the title.
Original signature : -(void)performActionForItemAtIndex:(NSInteger)
native declaration : NSMenu.h:144


setDelegate

public abstract void setDelegate(NSMenuDelegate anObject)
Set and get the delegate for the menu. See the NSMenuDelegate protocol for methods that the delegate may implement.
Original signature : -(void)setDelegate:(id)
native declaration : NSMenu.h:147


delegate

public abstract NSMenuDelegate delegate()
Original signature : -(id)delegate
native declaration : NSMenu.h:148


menuBarHeight

public abstract org.rococoa.cocoa.CGFloat menuBarHeight()
If called on the main menu, returns the height of the menu bar in pixels. If called on any other menu, returns 0.
Original signature : -(CGFloat)menuBarHeight
native declaration : NSMenu.h:152


cancelTracking

public abstract void cancelTracking()
Dismisses the menu and ends all menu tracking
Original signature : -(void)cancelTracking
native declaration : NSMenu.h:155


cancelTrackingWithoutAnimation

public abstract void cancelTrackingWithoutAnimation()
Dismisses the menu immediately, without any fade or other effect, and ends all menu tracking
Original signature : -(void)cancelTrackingWithoutAnimation
native declaration : NSMenu.h:158


highlightedItem

public abstract NSMenuItem highlightedItem()
Returns the highlighted item in the menu, or nil if no item in the menu is highlighted
Original signature : -(NSMenuItem*)highlightedItem
native declaration : NSMenu.h:161


minimumWidth

public abstract org.rococoa.cocoa.CGFloat minimumWidth()
Set the minimum width of the menu, in screen coordinates. The menu will prefer to not draw smaller than its minimum width, but may draw larger if it needs more space. The default value is 0.
Original signature : -(CGFloat)minimumWidth
native declaration : NSMenu.h:165


setMinimumWidth

public abstract void setMinimumWidth(org.rococoa.cocoa.CGFloat width)
Original signature : -(void)setMinimumWidth:(CGFloat)
native declaration : NSMenu.h:166


size

public abstract NSObject size()
Returns the size of the menu, in screen coordinates. The menu may draw at a smaller size when shown, depending on its positioning and display configuration.
Original signature : -(id)size
native declaration : NSMenu.h:170


font

public abstract NSFont font()
Sets the font for the menu. This also affects the font of all submenus that do not have their own font.
Original signature : -(NSFont*)font
native declaration : NSMenu.h:174


setFont

public abstract void setFont(NSFont font)
Original signature : -(void)setFont:(NSFont*)
native declaration : NSMenu.h:175


allowsContextMenuPlugIns

public abstract boolean allowsContextMenuPlugIns()
Determines whether contextual menu plugins may be appended to the menu, if used as a context menu. The default is YES.
Original signature : -(BOOL)allowsContextMenuPlugIns
native declaration : NSMenu.h:179


setAllowsContextMenuPlugIns

public abstract void setAllowsContextMenuPlugIns(boolean allows)
Original signature : -(void)setAllowsContextMenuPlugIns:(BOOL)
native declaration : NSMenu.h:180


setShowsStateColumn

public abstract void setShowsStateColumn(boolean showsState)
Determines whether the menu contains a column for the state image. The default is YES.
Original signature : -(void)setShowsStateColumn:(BOOL)
native declaration : NSMenu.h:183


showsStateColumn

public abstract boolean showsStateColumn()
Original signature : -(BOOL)showsStateColumn
native declaration : NSMenu.h:184


menuZone

public static Pointer menuZone()
Returns the zone used to allocate NSMenu objects. This is left in for compatibility and always returns NSDefaultMallocZone(). It is not necessary to use this - menus can be allocated the usual way.
Original signature : +(NSZone*)menuZone
native declaration : NSMenu.h:187


setMenuChangedMessagesEnabled

public abstract void setMenuChangedMessagesEnabled(boolean flag)
In SnowLeopard, the following methods no longer do anything useful.
Original signature : -(void)setMenuChangedMessagesEnabled:(BOOL)
native declaration : NSMenu.h:190


menuChangedMessagesEnabled

public abstract boolean menuChangedMessagesEnabled()
Original signature : -(BOOL)menuChangedMessagesEnabled
native declaration : NSMenu.h:191


helpRequested

public abstract void helpRequested(NSEvent eventPtr)
Original signature : -(void)helpRequested:(NSEvent*)
native declaration : NSMenu.h:192


isTornOff

public abstract boolean isTornOff()
Original signature : -(BOOL)isTornOff
native declaration : NSMenu.h:193


alloc

public static NSMenu alloc()

new_

public static NSMenu new_()

getNSClass

public static NSMenu._class_ getNSClass()


Copyright © 2009. All Rights Reserved.