• 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
Open an NSMenu in Code/Global Hotkeys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Open an NSMenu in Code/Global Hotkeys


  • Subject: Open an NSMenu in Code/Global Hotkeys
  • From: Aram Kudurshian <email@hidden>
  • Date: Sun, 15 Jan 2006 23:41:53 -0500

Hi,

I know this question has been asked before on the list but I wasn't able to find any suitable answer/example to help me with my problem and I don't know where else to turn.

Simply put, I'd like to be able to open my menu (I've got an NSMenuExtra) when a global hotkey is pressed. I've got the hotkey all set up but displaying the menu itself is the problem. There appears to be two ways to do this: popUpContextMenu which is used mainly for contextual menus and somehow through the accessibility API. Attempting to use the popUpContextMenu places the menu in the wrong location and I've been unable to get accessibility to work at all.

So, does anyone have any example code what would do pretty much what the spotlight menu does - opening a menu on a global hotkey? Or can anyone point me in the right direction?

Thanks,
	Aram

--
Aram Kudurshian

email@hidden
www.kudurshian.net
_______________________________________________
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


  • Prev by Date: Re: Question regarding NSArrayController, KVO and Core Data
  • Next by Date: Re: Seemingly bizzare calling of method
  • Previous by thread: Re: Text shadows in NSTextView
  • Next by thread: Copying files synchronously with Cocoa?
  • Index(es):
    • Date
    • Thread