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.
Some examples using this method:
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 |
Some examples using this method:
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.