Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSMenuMBS class.

NSMenuMBS.DidClose

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Menus MBS MacBase Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No
Invoked after a menu closed.

Don’t modify the structure of the menu or the menu items during this method.

NSMenuMBS.EnableMenuItems

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Menus MBS MacBase Plugin 8.7 ✅ Yes ❌ No ❌ No ❌ No
This event is called before the menu opens so you can edit the menu.

NSMenuMBS.PaletteSelectionChange

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Menus MBS MacBase Plugin 23.5 ✅ Yes ❌ No ❌ No ❌ No
The event called when the palette selection changes.

Some examples using this event:

NSMenuMBS.willHighlightItem(item as NSMenuItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Menus MBS MacBase Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No
Invoked to indicate that a menu is about to highlight a given item.

item: The item about to be highlighted.

Only one item per menu can be highlighted at a time. If item is nil, it means that all items in the menu are about to be unhighlighted.

NSMenuMBS.WillOpen

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Menus MBS MacBase Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No
Invoked when a menu is about to open.

Don’t modify the structure of the menu or the menu items during this method.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...