Skip navigation.
 
mlHow do I change behavior of NSTableView textDidEndEditing
FROM : Bob Peterson
DATE : Thu Oct 31 20:06:45 2002

in NSTableView, I want to cause TAB, ENTER and RETURN to terminate
editing, but not open another cell for editing. I don't see any
property or delegate method for managing this. Can anyone offer a
suggestion how to accomplish it?

My table view's purpose is not to provide editing of the model, but
selection of items. I allow some cells to change (for renaming an
entry, and to eventually permit clicking a checkbox button cell). hence
having the NSTableView open the next cell for editing gets it stuck in
data editing mode, which is unpleasant.

I've tried to clear the selection and reselect my row, but it has no
effect. (I've allowed the table view to have no rows selected.)
   - (void)tableView:(NSTableView*)tableView setObjectValue:(id)value
   forTableColumn:(NSTableColumn*)tableColumn row:(int)rowIndex
   {
...
       [myTableView deselectAll:self];
       [myTableView selectRow:rowIndex byExtendingSelection:NO];
       [myTableView scrollRowToVisible:rowIndex];

The archives and standard knowledge bases have no information, either.

Thanks!
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlHow do I change behavior of NSTableView textDidEndEditing Bob Peterson Oct 31, 20:06
mlRe: How do I change behavior of NSTableView textDidEndEditing Brian Webster Oct 31, 21:34
mlRe: How do I change behavior of NSTableView textDidEndEditing Andreas Mayer Nov 1, 15:02