Hotkeys in Cocoa using undocumented CoreGraphics calls
Hotkeys in Cocoa using undocumented CoreGraphics calls
- Subject: Hotkeys in Cocoa using undocumented CoreGraphics calls
- From: Wilfried de Denterghem <email@hidden>
- Date: Mon, 10 Dec 2001 05:32:35 +0100
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
--
MacReporter available at
http://www.inferiis.com/mac/macreporter