View Full Version : Key Event handling
Feb 28, 2007, 11:28 AM
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, 11:35 AM
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, 03: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.