dsmelov / simsim

Use SimSim to explore iOS application folders in Terminal or Finder. Fast, stable, free alternative to SimPholders.
MIT License
1.47k stars 95 forks source link

Use real `menu` property of NSStatusItem to allow mouse pulldown #48

Closed alexjsp closed 4 years ago

alexjsp commented 4 years ago

The Problem

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.