How to control cell tabbing in an NSTableView ?
How to control cell tabbing in an NSTableView ?
- Subject: How to control cell tabbing in an NSTableView ?
- From: Robert Miller <email@hidden>
- Date: Mon, 21 Oct 2002 14:56:32 -0400
Hello,
This might be a basic question I'm not sure but. I'd like to be able
to control the cell tabbing of an NSTableView, that is if I'm in an
edit mode and I hit the tab key or any other key that causes the cell
to end editing I'd like to be able to intercept which cell the table
thinks it wants to tab to next and change it if needed before it
actually tabs there an example would be tabbing through an already
highlighted group of cells, I'd like to contain the tabbing within the
highlighted range , I attempted to implement this type of behavior in
the '- (BOOL)tableView:(NSTableView *)aTableView
shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex'
delegate method (my table subclass is its own delegate) mainly because
this gets called while navigating the table using the keyboard. I'm
assuming I could return NO if the 'proposed' rowIndex and or table
column's index is not part of an already known highlighted range of
cells, but doing so causes the tabbing to stop at that point. Should I
just try to calling '-(void)editColumn:(int)columnIndex
row:(int)rowIndex withEvent:(NSEvent *)theEvent select:(BOOL)flag' when
the tab stopping occurs with a determined pair of indexes where the
next highlighted cell might be. The big question is Is there a
preferred or better way to accomplish this type of behavior in a table.
???
Thanks in advance for any info.
Regards,
Bob M.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.