Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSMenuItemMBS class.
NSMenuItemMBS.MenuItem(DesktopMenuItem as DesktopMenuItem) as NSMenuItemMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Menus | MBS MacBase Plugin | 22.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns nil on any error.
See also:
NSMenuItemMBS.MenuItem(MenuItem as MenuItem) as NSMenuItemMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Menus | MBS MacBase Plugin | 18.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns nil on any error.
See also:
NSMenuItemMBS.sectionHeaderWithTitle(Title as String) as NSMenuItemMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Menus | MBS MacBase Plugin | 23.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Section header items are used to provide context to a grouping of menu items.
Items created using this method are non-interactive and do not perform an action.
Requires macOS Sonoma or newer.
NSMenuItemMBS.separatorItem as NSMenuItemMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Menus | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSMenuItemMBS.usesUserKeyEquivalents as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Menus | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If true, menu items conform to user preferences for key equivalents; if false, the key equivalents originally assigned to the menu items are used.
(Read and Write computed property)
The items on this page are in the following plugins: MBS MacBase Plugin.