View Full Version : Key Event handling
Feb 28, 2007, 12:28 PM
How do you handle key events such as a tab (more specific to a tab key press)? I've looked through Apple's documentation, but I'm not sure how to do this. I want to create a note creation program.
Feb 28, 2007, 12:35 PM
It's kind of a wide ranging and complex topic. How are you capturing key presses to start with? Where is the input focus? Basically you need to insert yourself at the top of the Responder chain as Tab gets consumed by lots of different things before you will get a chance to handle it...
Feb 28, 2007, 04:20 PM
I'm gonna do it by a custom view cause that seems easier, I just can't figure out how to make the NSTextView have a horizontal scrollbar, I'm trying to make it a subview of a ScrollView class that has a vertical scrollbar.