core data how to filter (NSPredicate) including a relationship requirement and given the relationship object? [closed]
How would I filter (construct an NSPredicate) for the following. Have a SCHOOL and PERSON entities One-to-many relationship, i.e. a PERSON has one SCHOOL, SCHOOL has many PERSONs Input to the filter method are (a) persons Name (e.g. all with a first name of "Tom") , and (b) the managed object of the School itself. for the purposes of this question assume School has no unique attributes So then my confusion/observations are: I already have the School managed object itself, however not sure how to use this when creating the predicate? But if I create the NSPredicate how do I create the