Re: Q: NSTableView not sorting edited rows
Re: Q: NSTableView not sorting edited rows
- Subject: Re: Q: NSTableView not sorting edited rows
- From: The Karl Adam <email@hidden>
- Date: Sat, 7 May 2005 10:35:09 -0400
If your using bindings, this is automatic, if your manaully
implementing a datasource then you need to provide sort descriptors on
each column you want sortable and implement
– tableView:sortDescriptorsDidChange:
-Karl
On 5/7/05, Leonard Budney <email@hidden> wrote:
Hello,
Sorry if this is a FAQ: I did a search and couldn't find anything on
the subject.
I'm using an NSTableView, subclassed so the enter key selects the
current row as iTunes does. I enabled sorting in the Attributes
setting of the inspector in Interface Builder, and it works fine. The
problem is, when I edit a cell in the sorted column, the NSTableView
doesn't re-sort the entries (as iTunes does); if the edited value is
now out of order, the row doesn't change position.
I tried calling [tableView reloadData] in the changeKeyPath method of
MyDocument, but that had no effect. Other than that, I've searched in
vain for a hint on the Internet. Can anyone help?
Thanks!
Len.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden
email@hidden
_______________________________________________
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