How would I filter (construct an NSPredicate) for the following.
So then my confusion/observations are:
Preference is SWIFT (however if someone knows in Objective-C that might help me too). So what I'm trying to do again is:
The predicate would be what you expect.
NSPredicate(format: "name = %@ && school = %@", "Tom", school)
However, you can get to the person without a predicate by using the relationship in the other direction and filter.
let tom = school.persons.filter { $0.name == "Tom" }.first
(You might have to cast your NSSet
to Set<Person>
).