I'm constructing a Core Data NSFetchRequest in objective c. In the data model there is an abstract parent entity (which contains 4 basic attributes), and many different child entities that include attributes that aren't in the parent. Some children contain attributes that share the same name and data types.
I am applying the fetchRequest to the parent entity, so that it will search all instances of the child entities to see if a "keypath" exists.
Can I construct a predicate that will only return child entities that contain a particular attribute?
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"%@ IN self.entityAttributes",attribute.name];
Here, attribute is an instance of NSAttributeDescription, and the goal is to search for other entities that have an attribute of a matching name within their list of attributes, but I'm not sure how to format the predicate.
I can clarify further if needed. Thanks!