Link to home
Start Free TrialLog in
Avatar of Snapples
Snapples

asked on

NSFetchedResultsController updating on save

Hi experts, I have a couple of questions after having my mind blown recently.

I was always under the assumption that when data is saved to the PersistentStore, any data fetched with a FetchedResultsController is automatically updated, meaning that fetchedResultsController.fetchedObjects is updated with any new objects that pass the predicate.
Say I have a UITableView, filled with data fetched with a FetchedResultsController, when the controllerDidChangeContent delegate method was called I would simply call reloadData on my tableView and it would update just fine.
But now I'm reading this in the documentation (http://developer.apple.com/library/ios/#documentation/CoreData/Reference/NSFetchedResultsController_Class/Reference/Reference.html): "The results array reflects the in-memory state of managed objects in the controller’s managed object context, not their state in the persistent store. The returned array does not, however, update as managed objects are inserted, modified, or deleted. "
So now I'm confused, is the fetchedObjects array updated automatically or not?

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of darbid73
darbid73
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial