for the last two days I've been searching and reading a lot about something that should be very simple. It has become clear that isn't the case: I'm trying to make this:
That's all. I know shortcut recorder is pretty old and I've been working with the Demo of MASShortcut. MASShortcut is pretty awesome, but it's a lot of code for something so seemingly easy.
I've also searched in a lot of Apple sample code (hoping they would implement this somewhere other than Interface Builder, but no luck so far).
This leaves me with the following questions:
-Is there any documentation that could clarify some of this stuff? Or are there other, more simple solutions than MASShortcut?
-I've been trying to replicate something like the IB control myself, but I'm still stuck at "converting" the pressed keys to characters in the NSTextField (or is it a custom NSView in IB?). Does Apple offer an easy way to do this? Because catching everything with sendEvent and comparing it against a list of all keys seems a lot of work and I wonder how the apple programmers have done that in the control seen above. Should that be the only solution, are there different keyboard layouts I should be concerned about when I use it?
-How do other applications implement this so that it becomes visible here:
As you can see TextWranglers appears here, does that happen automatically when I call "[NSEvent addGlobalMonitorForEventsMatchingMask:]" in my application?
These are a lot of questions, I'm just hoping one of you guys can point me in the right direction.
Thanks in advance, Frans