I have an array of instances of my object – MyObject. Each instance has a string and an array property – myArrayProperty which contains instances of another class – MyOtherObject I am using an NSPredicate to do some filtering based on the values in myArrayProperty as so:
NSPredicate *myPredicate = [NSPredicate predicateWithFormat:@"myArrayProperty.otherObjectProperty MATCHES %@", mySearchString];
In this case otherObject property is a string property of MyOtherObject. I suspect the problem is with this construct: myArrayProperty.otherObjectPropert
My question is, how do I instruct the predicate to go through all items in myArrayProperty? I would like to avoid using a for loop here. Thanks.
You can use…
I believe.