How do I change behavior of NSTableView textDidEndEditing
How do I change behavior of NSTableView textDidEndEditing
- Subject: How do I change behavior of NSTableView textDidEndEditing
- From: Bob Peterson <email@hidden>
- Date: Thu, 31 Oct 2002 14:06:45 -0500
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@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.