• 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
Coding double modifier global hotkeys?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coding double modifier global hotkeys?


  • Subject: Coding double modifier global hotkeys?
  • From: Sumner Trammell <email@hidden>
  • Date: Sun, 24 Jan 2010 12:17:29 -0500

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 (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: Coding double modifier global hotkeys?
      • From: Eric Schlegel <email@hidden>
  • Prev by Date: UIButton's Sender Control Events
  • Next by Date: Re: Coding double modifier global hotkeys?
  • Previous by thread: Re: UIButton's Sender Control Events
  • Next by thread: Re: Coding double modifier global hotkeys?
  • Index(es):
    • Date
    • Thread