• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Two different actions depending on the event when clicking a NSStatusItem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Two different actions depending on the event when clicking a NSStatusItem?
      • From: Ron Fleckner <email@hidden>
  • Prev by Date: Re: private methods and variables
  • Next by Date: AuthorizationExecuteWithPrivileges flag error
  • Previous by thread: Re: Multithreaded file read
  • Next by thread: Re: Two different actions depending on the event when clicking a NSStatusItem?
  • Index(es):
    • Date
    • Thread