Re: un-selecting the rows from a table
Re: un-selecting the rows from a table
- Subject: Re: un-selecting the rows from a table
- From: Andréas Saudemont <email@hidden>
- Date: Thu, 30 Sep 2004 09:46:42 +0200
Chad,
> I've selected and edited a table's row (which has a single column) by
> using selectRow (or selectedRowIndexes for Mac OS 10.3) and editColumn.
> However, after I have made my changes and pressed Enter, the next row
> is selected for editing. I want to stop editing and unhighlight the
> table. I've tried calling deselectAll to my table, but that doesn't
> work. Any ideas on what I need to do to tell my table to stop editing?
You'll have to create a subclass of NSTableView and overwrite the
textDidEndEditing: delegate method.
See the documentation for textDidEndEditing: in NSTableView and
listing 2, "Forcing the end of editing" at:
http://developer.apple.com/documentation/Cocoa/Conceptual/TextEditing/Tasks/BatchEditing.html
Hope this helps,
Andréas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden