> On Jun 7, 2019, at 2:38 PM, Christian Schmitz 
> <supp...@monkeybreadsoftware.de> wrote:
> 
> 
> 
>> What I am seeing is that with the correct “SendActionOn” mode set, the 
>> Action event will indeed fire. Unfortunately as soon as I attach a *menu* to 
>> the StatusItem, the Action events are no longer raised. Do I need to *not* 
>> attach the menu and then display it manually in the Action event, and if so, 
>> how would that be done?
> 
> NSMenuMBS class has a popup method to show a menu.
> 
> popUpContextMenu or popUpMenuPositioningItem
> 

If I did it this way, in the Action event of the NSStatusItem, how would I 
determine which mouse button was used to trigger the event? I want to do 
*different* things depending on if the user clicked the right or left mouse 
button, but the Action event doesn’t have any knowledge of why or how it was 
called.

It seems more logical to have the menu correctly attached to the status item, 
this way it always displays in *exactly* the correct position. Do you know why 
the two (attached menu / functioning action event) would be mutually exclusive? 
I suspect that I’m doing something wrong.

Cheers. 

-bill k



_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to