Using the action property of NSStatusItem to popup a menu doesn't allow holding down the left mouse button on the status bar item, moving it to a menu item, and releasing to select an item, as the user might expect.
The Solution
Using the menu property of NSStatusItem allows it to be pulled down as expected, and using NSMenu's menuNeedsUpdate delegate method allows the menu to still be updated when opened as before.
The Problem
Using the
action
property ofNSStatusItem
to popup a menu doesn't allow holding down the left mouse button on the status bar item, moving it to a menu item, and releasing to select an item, as the user might expect.The Solution
Using the
menu
property ofNSStatusItem
allows it to be pulled down as expected, and usingNSMenu
'smenuNeedsUpdate
delegate method allows the menu to still be updated when opened as before.