While the API to create hotkeys is a Carbon API, I wouldn't necessarily call it an "old" API; it's been updated to work for 64-bit apps and was the topic of one of the sessions at this year's WWDC (Session #145).
As for your question, I'm not quite sure what you mean. I got sick of trying to deal with (what I thought was) the class bloat of wrappers like PTHotKey, so I wrote my own. You can peruse the source on Github: http://github.com/davedelong/DDHotKey Hopefully that will help you figure out what's going on.
edit Key codes are how you indicate which key you want to tie your code to. These key codes are the "virtual" key codes, and they can be acquired in one of two ways:
- Perusing
HIToolbox/Events.h
and finding which key you want
- Extract it from
-[NSEvent keyCode]
Even projects like ShortcutRecorder use one of these 2 approaches. I'm not aware of any others.