Core Data With NSFetchedResultsController and Swift

Episode 1

Populate a Table View With NSFetchedResultsController and Swift

Even though you don't need to use the NSFetchedResultsController class to populate a table view, I find myself using it quite a bit in Core Data applications. Swift 3 has substantially improved support for Core Data and the NSFetchedResultsController class also benefits from these optimizations.

Episode 3

Respond to Updates Using the NSFetchedResultsControllerDelegate Protocol

In this tutorial, we add the ability to update quotes. Not only do we want the table view to reflect the changes we make to a quote, we also want to make sure the sort order of the quotes is updated when a quote is modified. You guessed it. The NSFetchedResultsController class and the NSFetchedResultsControllerDelegate protocol make this almost trivial.