Requirement
I'd like to detect not a single but a sequence of characters to trigger an action, e.g when the user types 'cat' into a NSView subclass - but not for a 'c'.
Is there anything smarter other than maintaining something like a NSMutableArray with the last 3 characters entered in my keyDown: method, assembling strings from that array (via NSData?) and checking that string?
Sounds a bit awkward..but I can't figure an easier way (or built in functionality in NSResponder/NSView)