NSTableView return key and editing
NSTableView return key and editing
- Subject: NSTableView return key and editing
- From: Christopher Corbell <email@hidden>
- Date: Thu, 22 May 2003 18:07:38 -0700
How does one cleverly defeat the continuation of editing items
that NSTableView implements with the return key?
With an editable, single-column table, if you edit an item and
hit return, NSTableView then automatically causes the item below
it to become open for editing. I do not want this to happen, but
trying to defeat it with from the delegate shouldEditTableColumn:
doesn't work - if I say no, I get another editColumn: invocation;
if I say no twice, I get a third! It won't give up.
I've put in a one-shot timer that aborts editing after a short time but
this
seems like an inelegant solution.
(UI note: my table is sorted alphabetically like the Finder, so
when the user changes the name of an item it can trigger a
re-sort of the list. This is one major reason why the return-key,
spreadsheet-like editing behavior isn't wanted.)
Thanks for any help,
Christopher
_______________________________________________
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.