Hi,

I've been playing with code to create global hotkeys. I found some
sample code here:

http://dbachrach.com/blog/2005/11/program-global-hotkeys-in-cocoa-easily

(To my dismay, these things require Carbon knowledge, but thanks to
the sample code, it seems that I can once again get away with knowing
almost nothing of the Carbon APIs.)

This code does a fine job of setting up standard "modifier key +
regular key" global hotkeys, but I can't figure out how to do double
modifier hotkeys. For example:

command-command
option-option
etc.


OmniFocus, Quicksilver and LaunchBar, to name a few, support double
modifier global hotkeys.


Can anyone point me to some documentation or give me hints on how to
create double modifier global hotkeys? The following didn't work,
fwiw:


        error = RegisterEventHotKey(cmdKey, cmdKey, gMyHotKeyID,
GetApplicationEventTarget(), 0, &gMyHotKeyRef);





Thanks.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to