I have an NSView
subclass which implements acceptsFirstResponder
, resignFirstResponder
and becomeFirstResponder
. It also implements the following method:
-(void)keyDown:(NSEvent *) event
{
[self interpretKeyEvents:[NSArray arrayWithObject:event]];
}
I handle the messages that interpertKeyEvent:
sends in an appController class (The appController is the NSWindow
delegate and therefore part of the responder chain).
This approach works fine for most message generated by interpertKeyEvent:
, eg insertNewline:
, moveUp:
and moveDown:
, but it does not work for insertText:
.
How do I get objects in the responder chain to handle insertText:
messages?