• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sorting NSTableView + CoreData - odd behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Cocoa-dev Digest, Vol 8, Issue 190
  • Next by Date: Re: Remove characters from string
  • Previous by thread: Re: Cocoa-dev Digest, Vol 8, Issue 190
  • Next by thread: iOS Core Data complex predicate.
  • Index(es):
    • Date
    • Thread