I'm using the code below with my NSFetchedResultController
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"self.objRelationship.ObjectId == %@", objectFromOtherContext.ObjectId];
[fetchRequest setPredicate:predicate];
The NSManagedObjectContext
being use by NSFetchedResultController
is different from the NSManagedObjectContext
of objectFromOtherContext variable. The NSFetchedResultController
does not return any data. However, it is returning something if they are using the same NSManagedObjectContext
.
Is there a way to filter by ObjectId
if the NSManagedObjectContext
of the NSFetchedResultController
is different from the NSManagedObjectContext
of the NSManagedObject
that was passed to the predicate? (assuming the object is already saved on the persistent store).