• 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
Re: Right-click not working to trigger menu in NSStatusItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Right-click not working to trigger menu in NSStatusItem


  • Subject: Re: Right-click not working to trigger menu in NSStatusItem
  • From: Ryan Britton <email@hidden>
  • Date: Thu, 21 Sep 2006 14:18:49 -0700

You will need to implement a custom view to handle the right-click case instead of using the default one provided by NSStatusItem. The default only pops up the menu on left-click so you will be left implementing the logic for right-click.

http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSStatusItem_Class/Reference/Reference.html#// apple_ref/occ/instm/NSStatusItem/setView:



On Sep 21, 2006, at 2:06 PM, Rob Ross wrote:

On Sep 21, 2006, at 1:53 PM, Nick Zitzmann wrote:


On Sep 21, 2006, at 1:43 PM, Rob Ross wrote:

But for some reason, right-clicking with my Kensington Expert mouse will not trigger the menu to pop down. I can Left click, and I can option-left click; but right-clicking does nothing. All the other items in my status bar (iChat, Monitors Display, volume, etc.) drop down their menu whether I left, right, or option-click with the left or right mouse-button.

Is there some magic command I'm failing to call to get right- clicks to trigger the menu to pop down?

Those other items in the status bar don't use NSStatusItem.

Nick Zitzmann
<http://www.chronosnet.com/>


Ok, but I'm not sure what that means in the context of my question. Does it mean "Right-click isn't *supposed* to work with NSStatusItem, and the reason it works with the other is that they are NOT NSStatusItems"?

Or are you saying I can't conclude anything from my examples because they are not the same?

In either case, my question is still the same: "How do I get an NSStatusItem to drop-down its menu when I right-click it?"

Thanks,

Rob Ross, Lead Software Engineer
E! Networks
---------------------------------------------------
"Beware of he who would deny you access to information, for in his heart he dreams himself your master." -- Commissioner Pravin Lal
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Right-click not working to trigger menu in NSStatusItem (From: Rob Ross <email@hidden>)
 >Re: Right-click not working to trigger menu in NSStatusItem (From: Nick Zitzmann <email@hidden>)
 >Re: Right-click not working to trigger menu in NSStatusItem (From: Rob Ross <email@hidden>)

  • Prev by Date: Re: Right-click not working to trigger menu in NSStatusItem
  • Next by Date: Re: Re: pid vs. Process Serial Number
  • Previous by thread: Re: Right-click not working to trigger menu in NSStatusItem
  • Next by thread: NSPredicate documentation out of sync or is it my system?
  • Index(es):
    • Date
    • Thread