I currently have NSView which receives keyDown: events and I haven't had any issues with it until trying to implement NSTextView with it.
However, I am wanting to handle text input with my application. This way I can utilize various text-like events (moveUp:, moveDown:, insertText:, etc) and give them various uses throughout the application.
After adding NSTextView and adding it to the responders via addSubview: I have noticed that now, I am no longer getting any keyDown: events through NSView, but I am getting the insertText: events for the text input. If I try to set acceptsFirstResponder to True for NSView, now I can't receive any events from the NSTextView, but I do get keyDown: events again on the NSView.
How do I get these both to work together? I would like receive the above events for the NSTextView, as well as the keyDown: event from NSView. In other words, I want the event to go down the chain of responders (NSView and NSTextView), how do I go about achieving this? I tried overriding the keyDown: of NSTextView but it seems once you call interpretKeyEvents: it will consume the event and not travel to the NSView.
I am not super familiar with cocoa events, but I haven't been able to find a solution to this. Any help would be appreciated.