TableView / ArrayController sorting not updating the tableview
TableView / ArrayController sorting not updating the tableview
- Subject: TableView / ArrayController sorting not updating the tableview
- From: Darren Wheatley <email@hidden>
- Date: Sat, 19 Mar 2011 23:17:16 +0000
- Thread-topic: TableView / ArrayController sorting not updating the tableview
Hi,
I have an NSTableView bound to a core-data-backed NSArrayController by
binding individual columns to arraycontroller.arrangedObjects.<field>
I have the default out-of-the-box sorting working, but when I click one of
the column headers to sort the table I have problems.
Basically the display of the table gets messed up: rows get duplicated,
and the sort order is all over the place.
However, when I click on a row the TableView redraws and everything looks
fine.
So, it looks like the sorting is working properly, but it is not being
reflected in the display of the tableview until I click on a row.
Can anyone tell me why my tableview isn't updating properly when I sort?
I have Googled this extensively, looked in the docs, and tried everything
I can think of in the code but can't work out what is happening.
Thanks
Darren.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden