Bit of a newb here, with a general question about architecture.
I have an iOS app with two separate views both talking to the same core data model.
I have implemented an NSFetchedResultsController for one of the views, as a local property. Lots of delegate methods to implement...
(void)controllerWillChangeContent:(NSFetchedResultsController *)controller
(void)controller:(NSFetchedResultsController *)controller didChangeSection:(id )sectionInfo atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type
(void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(NSIndexPath *)newIndexPath
(void)controllerDidChangeContent:(NSFetchedResultsController *)controller
(NSFetchedResultsController *)fetchedResultsController
...most of which are boilerplate, but I'd like to avoid just copy/pasting these into the other view.
Any suggestions on rearchitecting to avoid such heresy...?