PDA

View Full Version : Need Help With NSPredicate




Fazzl
May 15, 2011, 09:11 PM
I am using a fetchedResultsController and am using this for my predicate right now:

[fetchRequest setPredicate:[NSPredicate predicateWithFormat: @"sets == %@", self.exercise]];

But this doesn't yield any results (when I remove it I get all objects for sets)

What I want is just objects of sets with a relationship with object exercise which has relationship with object session.

Any idea?

A Session (class file (https://gist.github.com/969795)) has to many relationship to Exercise(class file (https://gist.github.com/969798)) which has to many relationship to Set(class file (https://gist.github.com/969800)). (click the links of class file to see the object implementation)