I need to have a way for the user to input a shortcut key combination in my Preferences and I'm looking to do something that works similar to how the System Preferences keyboard shortcut panel works.
I thought about subclassing an NSTextField
and override keyDown:
and keyUp:
but it seems these overrides do nothing... any hints?
Alternatively is there a control kit or some technique that everyone is using and I haven't heard of? Quite a few applications implement a similar behavior albeit with some slight "look-and-feel" differences.