• 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
Re: NSFetchedResultsController with custom NSSortDescriptor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFetchedResultsController with custom NSSortDescriptor


  • Subject: Re: NSFetchedResultsController with custom NSSortDescriptor
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 19 Aug 2009 09:06:46 -0700

You're going to need to do an in-memory sort of these objects.  Your
suspicions about Core Data sorting are correct: when using the SQLite
store, it sends the sorting off to the database backend, where it's
far more efficient to do.

Have you thought instead of sorting on a dependent property of your
objects?  Maybe create an integer property sortIndex that is updated
when other properties are updated.  This is where you need to shut up
the part of your brain that complains about normalization.  :)

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: NSFetchedResultsController with custom NSSortDescriptor
      • From: Sebastian Celis <email@hidden>
References: 
 >NSFetchedResultsController with custom NSSortDescriptor (From: Sebastian Celis <email@hidden>)

  • Prev by Date: Re: NSTableView empty selection not working
  • Next by Date: Re: Get size of folder
  • Previous by thread: NSFetchedResultsController with custom NSSortDescriptor
  • Next by thread: Re: NSFetchedResultsController with custom NSSortDescriptor
  • Index(es):
    • Date
    • Thread