Re: Backtabbing into an NSTableView

2009-06-07 Thread Vadim
An update on this question. It turns out the first bit of code does not work after all, because 48 is the keyCode for [Tab] and [Shift +Tab]. I needed to change the code to the following: -(void)keyDown:(NSEvent *)theEvent { if ([theEvent keyCode] == 48 && ([theEvent modifierFlags] & NSSh

Re: Backtabbing into an NSTableView

2009-06-06 Thread K. Darcy Otto
An update on this question. It turns out the first bit of code does not work after all, because 48 is the keyCode for [Tab] and [Shift +Tab]. I needed to change the code to the following: -(void)keyDown:(NSEvent *)theEvent { if ([theEvent keyCode] == 48 && ([theEvent modifierFlags] & NSSh

Backtabbing into an NSTableView

2009-06-05 Thread K . Darcy Otto
I have an application where a 2-column NSTableView subclass is the main visual element. Users can select rows only, not columns. When the user has a row selected, and presses [Tab], the table automatically starts editing the first column. I want to make it so that when the user has a row