Re: Hotkeys in Cocoa using undocumented CoreGraphics calls
Re: Hotkeys in Cocoa using undocumented CoreGraphics calls
- Subject: Re: Hotkeys in Cocoa using undocumented CoreGraphics calls
- From: Rosyna <email@hidden>
- Date: Mon, 10 Dec 2001 00:36:28 -0700
The hardest part is knowing what is compatible with the Cocoa event
loop and what is not. Apple should document that ;)
Ack, at 12/10/01, Wilfried de Denterghem said:
Hello there,
I know this has been asked before but I'm trying yet again.
I want to be able to catch system-wide keystrokes or "hot keys" in
Cocoa. Yes, I know there is a RegisterEventForHotKey call in Carbon
but it's useless to me. I've been looking into the CoreGraphics
framework and found out there were a few mysterious undocumented
calls
in there, namely :
CGSGetHotKey
CGSIsHotKeyEnabled
CGSRemoveHotKey
CGSSetHotKey
CGSSetHotKeyEnabled
CGSSetHotKeyWithExclusion
Can anybody give me a hint on that subject? I'd like to get the
prototypes of those functions so I can link against them. Any help
will be greatly appreciated.
Wilfried de Denterghem
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People