NSPredicate acting strange in NSFetchedResultsController
- by Scott Langendyk
I feel as if this should be very simple, but it's behaving strangely.
I have 3 entities, with a relationship as such
Entity A <-- Entity B <<-- Entity C
I have an NSFetchedResults controller and I'm trying to filter the results of Entity A using the following predicate.
[NSPredicate predicateWithFormat:@"NONE entityB.entityC == %@", self.entityC];
When I try and run the app, the output shows no results. I can alter the predicate slightly to:
[NSPredicate predicateWithFormat:@"ANY entityB.entityC == %@", self.entityC];
And it shows me only the results that I want it to filter out.
Why is this happening?