Re: Q: NSTableView not sorting edited rows
Re: Q: NSTableView not sorting edited rows
- Subject: Re: Q: NSTableView not sorting edited rows
- From: Leonard Budney <email@hidden>
- Date: Sat, 7 May 2005 10:53:43 -0400
On May 7, 2005, at 10:35 AM, The Karl Adam wrote:
If your using bindings, this is automatic...
I'm using bindings, so the automatic behavior isn't working. Any idea
where I should be looking?
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 )
Help/Unsubscribe/Update your Subscription:
This email sent to 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