Platforms to show: All Mac Windows Linux Cross-Platform
Cocoa Menus
Cocoa Classes for handling menus.
- Classes
- class NSMenuItemMBS
- method clearAction
- method Constructor(DesktopMenuitem as DesktopMenuitem)
- method Constructor(Handle as Integer)
- method Constructor(MenuItem as MenuItem)
- method Constructor(Other as NSMenuItemMBS)
- method Constructor(title as string="", keyEquivalent as string="")
- method CreateMenuItem(title as string="", keyEquivalent as string="")
- method CreateSeparator
- shared method MenuItem(DesktopMenuItem as DesktopMenuItem) as NSMenuItemMBS
- shared method MenuItem(MenuItem as MenuItem) as NSMenuItemMBS
- shared method sectionHeaderWithTitle(Title as String) as NSMenuItemMBS
- shared method separatorItem as NSMenuItemMBS
- method setAction(target as NSResponderMBS, selectorName as string)
- method setTitleWithMnemonic(title as String)
- property ActionSelector as String
- property Alternate as boolean
- property attributedTitle as NSAttributedStringMBS
- property Enabled as boolean
- property Handle as Integer
- property hasSubmenu as boolean
- property Identifier as String
- property image as NSImageMBS
- property indentationLevel as Integer
- property isHidden as boolean
- property isHiddenOrHasHiddenAncestor as boolean
- property isHighlighted as boolean
- property isSectionHeader as Boolean
- property isSeparatorItem as boolean
- property keyEquivalent as String
- property keyEquivalentModifierMask as Integer
- property menu as NSMenuMBS
- property mixedStateImage as NSImageMBS
- property offStateImage as NSImageMBS
- property onStateImage as NSImageMBS
- property parentItem as NSMenuItemMBS
- property state as Integer
- property submenu as NSMenuMBS
- property tag as Integer
- property Title as String
- property toolTip as String
- property userKeyEquivalent as String
- property view as NSViewMBS
- property usesUserKeyEquivalents as boolean
- event Action
- event validateMenuItem(menuItem as NSMenuItemMBS) as boolean
- class NSMenuMBS
- method addItem(m as NSMenuItemMBS)
- method cancelTracking
- method cancelTrackingWithoutAnimation
- method Constructor(Handle as Integer)
- method Constructor(title as string="")
- shared method helpMenu as NSMenuMBS
- method indexOfItem(item as NSMenuItemMBS) as Integer
- method indexOfItemWithSelector(selector as string) as Integer
- method indexOfItemWithSubmenu(item as NSMenuMBS) as Integer
- method indexOfItemWithTag(tag as Integer) as Integer
- method indexOfItemWithTitle(title as string) as Integer
- method insertItem(m as NSMenuItemMBS, index as Integer)
- method Item(index as Integer) as NSMenuItemMBS
- method itemWithSelector(selector as string) as NSMenuItemMBS
- shared method mainMenu as NSMenuMBS
- shared method menuBarVisible as boolean
- shared method NSMenuDidAddItemNotification as string
- shared method NSMenuDidBeginTrackingNotification as string
- shared method NSMenuDidChangeItemNotification as string
- shared method NSMenuDidEndTrackingNotification as string
- shared method NSMenuDidRemoveItemNotification as string
- shared method NSMenuDidSendActionNotification as string
- shared method NSMenuWillSendActionNotification as string
- shared method paletteMenuWithColors(colors() as NSColorMBS, itemTitles() as String, templateImage as NSImageMBS = nil) as NSMenuMBS
- method performActionForItemAtIndex(index as Integer)
- shared method popUpContextMenu(menu as NSMenuMBS, theEvent as NSEventMBS, view as NSViewMBS, font as NSFontMBS = nil)
- method popUpMenuPositioningItem(item as NSMenuItemMBS, location as NSPointMBS, view as NSViewMBS = nil) as boolean
- method removeAllItems
- method removeItem(m as NSMenuItemMBS)
- method removeItemAtIndex(index as Integer)
- method selectedItems as NSMenuItemMBS()
- shared method setMenuBarVisible(value as boolean)
- method setSelectedItems(items() as NSMenuItemMBS)
- method update
- shared method windowsMenu as NSMenuMBS
- property allowsContextMenuPlugIns as boolean
- property autoenablesItems as Boolean
- property Font as NSFontMBS
- property Handle as Integer
- property highlightedItem as NSMenuItemMBS
- property Identifier as String
- property menuBarHeight as Double
- property minimumWidth as Double
- property numberOfItems as Integer
- property presentationStyle as Integer
- property selectionMode as Integer
- property showsStateColumn as boolean
- property size as NSSizeMBS
- property supermenu as NSMenuMBS
- property Title as String
- property userInterfaceLayoutDirection as Integer
- event DidClose
- event EnableMenuItems
- event PaletteSelectionChange
- event willHighlightItem(item as NSMenuItemMBS)
- event WillOpen
- class NSMenuItemMBS
- Blog Entries
- MBS Xojo Plugins, version 24.1pr4
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.5
- More Menubar options in macOS Sonoma
- News from the MBS Xojo Plugins Version 23.3
- MBS Xojo Plugins 18.3
- MBS Xojo Plugins, version 18.3pr1
- Custom menu checkmarks
- Apply fonts to font PopupMenu
- MonkeyBread Software Releases the MBS Real Studio plug-ins in version 13.1
- MBS Real Studio Plugins, version 13.1pr13
Release notes
- Version 24.2
- Improved effectiveAppearance and appearance methods in NSAppearanceMBS class to allow passing NSMenuMBS, NSMenuItemMBS, MenuItem or DesktopMenuItem objects.
- Version 24.1
- Added Identifier property to NSCellMBS, NSMenuItemMBS, NSMenuMBS and NSViewControllerMBS classes.
- Version 23.5
- Added new methods and properties to NSMenuMBS and NSMenuItemMBS for macOS Sonoma for palette menus and section headers.
- Version 22.0
- Fixed Constructor and MenuItem function in NSMenuItemMBS class to work for DesktopMenuItem.
- Version 20.3
- Added clearAction method for NSMenuItemMBS class.
- Version 18.3
- Added Menuitem function to NSMenuItemMBS class.
- Reworked NSMenuItemMBS to make all properties visible in debugger.
The items on this page are in the following plugins: MBS MacBase Plugin.