Under the Hood of the NSFetchedResultsController

We can see the value of an NSFetchedResultsController, but how does it actually work? When I started to explore the details, I was shocked to find out that I could duplicate much of the behavior of the NSFetchedResultsController using publicly available APIs.

This means that instead of trying to cram the NSFetchedResultsController into places that it almost fits (or worse) you can build your own that behaves exactly in the way that you need to. With publicly exposed APIs, the Core Data team has invited us to build our own observers of Core Data so that non-table view user interfaces can react to changes in the data easily.

At its core, the NSFetchedResultsController takes advantage of the notifications ...

Get Core Data in Objective-C, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.