Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hotkeys in Cocoa using undocumented CoreGraphics calls



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.