You NSFetchedResultsController an error with NSFetchedResultsController where notifications were not received (or not rated?) For changes to the properties of the associated object.
In this case, the read items property is not tracked for changes.
Instead of restructuring, you can work around this problem by faking the change in item in relation. those. when you change item.read , also pretend that you want to change item .
My experience is only one-to-one. I donβt understand how you will handle your one-to-many relationships when you only change one key of one of many. This may work:
thisItem.read = [NSNumber numberWithBool:NO]; [thisItem.subscription willChangeValueForKey:@"items"]; [thisItem.subscription didChangeValueForKey:@"items"];
This should send a notification that the relationship ( subscription.items ) is changing on the subscriptions objects that are viewed by NSFetchedResultsController .
I can provide a working example of a one-to-one relationship case that works fine.
source share