Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

slooksterPSV

macrumors 68040
Original poster
Apr 17, 2004
3,544
306
Nowheresville
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.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
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...
 

slooksterPSV

macrumors 68040
Original poster
Apr 17, 2004
3,544
306
Nowheresville
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.