Reputation: 17812
I have one section of a table which will display an initial set of comments, and then as new comments are entered and merged into core data, it will display those as well. I could simply tack all the new comments onto the end of the current array using a standard fetch, but I would also like to handle any potential comments that were added in the meantime, and may be mixed into the sort order of the current comments.
I was trying to decide how easiest to do all of this with NSMutableOrderedSet, but really nsfrc already does everything I need, except it works with multiple sections.
Is it wise to try and shoe-horn that in there?
Upvotes: 0
Views: 165
Reputation: 45598
If you are using Core Data, NSFetchedResultsController
should probably be used for all your table views which display core data entities. Even those which are not updating in the background.
In this case you do have things being merged in the background, so NSFetchedResultsController
is the logical and correct choice.
Upvotes: 1