Apologies if this has been discussed to death elsewhere but I could not find a question that addresses my query directly.
I am working on an application that downloads objects from a remote server in JSON format and converts the result into core data objects.
For a while I have been using NSFetchedResultsController to observe object changes for particular entity types with a filter NSPredicate applied. The aim here is to be informed of changes only when managed objects that meet certain criteria have been added, modified or deleted.
I am aware of the NSManagedObjectContextObjectsDidChangeNotification of NSManagedObjectContext, however my understanding is that the -userInfo dictionary contains all object changes, regardless of entity.
My fears may be unfounded, but as I am not using NSFetchedResultsController to manage a UITableView, am I being wasteful in employing the class for this purpose?
Is there a better way of being notified when objects of a particular entity type and property values have been added, modified or deleted?
Many Thanks.
P.s. I am aware of the availability of NSArrayController in Cocoa which seems to contain the features I require, although I have not experimented with it. This class is not available for iOS.
I’ve use
NSFetchedResultsControllerin the past to keep track of changes to Core Data objects that I’m interested in. There’s nothing that says you have to tie it to a UITableView implementation.That said, you might want to look at this question: Using NSFetchedResultsController Without UITableView