• 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
How do I update re-sort the fetch results associated with an NSFetchedResultsController instance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I update re-sort the fetch results associated with an NSFetchedResultsController instance?


  • Subject: How do I update re-sort the fetch results associated with an NSFetchedResultsController instance?
  • From: Michael Crawford <email@hidden>
  • Date: Mon, 25 Jul 2011 17:48:32 -0400

I have an fetched-results-controller (FRC) that returns entities that are sorted by name.  After I get Core Location callbacks up and running, I need to update the sort order of the same result set but by distance (another attribute/property of the same entity).  It just so happens that distance is an transient property and does not persist.  Thus, when I issue a fetch request with a sort descriptor for distance, I get an invalid argument exception.

How can I effectively sort by distance, based on updates from Core Location while continuing to use the FRC and transient properties?

I realize I could make distance not be transient but I'm hoping to avoid that.  Perhaps there is another way to update the sort order for a result set that has aready been fetched and is being managed by an FRC?

-SMJ
_______________________________________________

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: Windows get released on 10.6, leak on 10.7
  • Next by Date: Re: Fastest high-quality thumbnail display
  • Previous by thread: Re: Fastest high-quality thumbnail display
  • Next by thread: Disable Lion's window restoration?
  • Index(es):
    • Date
    • Thread