popUpMenu(_:)
Displays a menu under a custom status bar item.
Declaration
func popUpMenu(_ menu: NSMenu)Parameters
- menu:
The
NSMenuobject to display.
Discussion
You can use this method to cause a popup menu to appear under a custom status bar item when the user clicks the item. Note that the view of the status item must exist (that is, it must not be nil).