Two different actions depending on the event when clicking a NSStatusItem?
Two different actions depending on the event when clicking a NSStatusItem?
- Subject: Two different actions depending on the event when clicking a NSStatusItem?
- From: email@hidden
- Date: Wed, 30 Jul 2008 14:08:22 +0200 (CEST)
- Importance: Normal
Hi there.
My application uses a NSStatusItem. When somebody left-clicks on it I want
a method to be called (Which I've managed to fix) and then when somebody
right-clicks on it I want a menu to be shown. I can't seem to get that to
work. If I set a menu for the status item it shows up when somebody
left-clicks on it and the other method isn't called.
How do I fix it so that when somebody right-clicks on it, the menu shows
and when somebody left-clicks on it the other method is called?
Any help is appreciated.
/Tim Andersson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden