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.f
cts 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.