I'm trying to have a menulet that acts different on left-click and on right-click (and maybe combinations in the future like control-click, option-click or command-click).
Right now I have a menulet with a statusMenu attached to it that opens on left- and on right-click. In the statusMenu are five options: one execution item, three preference-setting-items and one quit item.
I'd like to separate the behavior somewhat as the menulet is designed to be a one trick pony. Left-clicking it should execute the function, right-clicking should open the menu exactly as it is (including the execution).
Any ideas how to do this?
Right now I'm calling the statusMenu from the code as is usual with statusMenus
[statusItem setMenu:statusMenu];