I’m still getting used to how Core Data works and I’ve looked around for information about my problem but I haven’t found any answers that obviously address my exact problem.
I have three classes of managed objects: loan, borrower, and photo. Borrower objects have a one-to-many relationship with loan objects (meaning a borrower can have more than one loan but a loan can only have one borrower). Borrower objects also have a one-to-one relationship with a photo object.
I am using an NSFetchedResultsController to keep a table up to date with changes in a set of loan objects. When other borrower properties change the change notification reaches the NSFetchedResultsController and my table updates. But when the photo property changes to point to another photo object then no notification is passed to the NSFetchedResultsController. It seems that none of the loans that are related to the borrower are told when the borrower changes its photo relationship.
Please help!
You can try to handle the
NSManagedObjectContextObjectsDidChangeNotificationnotification.