Sorting NSTableView + CoreData - odd behaviour
Sorting NSTableView + CoreData - odd behaviour
- Subject: Sorting NSTableView + CoreData - odd behaviour
- From: Darren Wheatley <email@hidden>
- Date: Thu, 17 Mar 2011 15:12:39 +0000
Hi,
I have an NSTableView bound to a core data-backed NSArrayController. The columns are numbers, strings, and BOOLs.
The application works fine, but sorting is broken.
I assumed that sorting worked "out of the box" but when I click a column header in the table the rows are reorganised but in a random order. I have noticed that they are mixed up to the point where one row is being written on top of another, resulting in rubbish text in that row.
Confusingly, when I click on a row the sorting is instantly fixed and the contents of all rows switches to what it should be. However, this is only true for the records visible at the time; if I scroll further down the table the bad rows are still present.
Any ideas what might be causing this behaviour?
I've Googled, but can't find anything. Not sure what search terms to use for this TBH.
Is my assumption that sorting works "out of the box" incorrect? I thought I only had to implement something if I wanted a custom sort order.
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