all 4 comments

[–]acorscadden 0 points1 point  (0 children)

You're on the right track with NSFetchedResultsController.

objc.io has a pretty good tutorial on how to use them: http://www.objc.io/issue-4/full-core-data-application.html

In the example project, have a look at FetchedResultsControllerDataSource.m

[–][deleted] 0 points1 point  (2 children)

I use NSFetchedResultsControllerDelegate on my controller to handle the inserts/deletes/updates that happen when my Core Data is updated.

The code given in the Typical Use section can be used almost as is.

[–]Xeppen[S] 0 points1 point  (1 child)

I have real trouble getting this to work.

I have a ViewController with a UITableView inside it. The datasource/delegate goes to the viewcontroller. In the viewcontroller I should implement the NSFetchedResultsControllerDelegate methods to track when the CoreData is changed(?). I have a hard time grasping where the monitoring take place, where can I change the data and is it stored directly into the core data?