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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to