Generic implementation with Core Data and NSFetchedResultsController.