select(_:)
Selects the specified menu item.
Declaration
func select(_ item: NSMenuItem?)Parameters
- item:
The menu item to select, or
nilif you want to deselect all menu items.
Selects the specified menu item.
func select(_ item: NSMenuItem?)The menu item to select, or nil if you want to deselect all menu items.