Open an NSMenu in Code/Global Hotkeys
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