I'm trying to filter an array of objects that essentially form a tree-style graph. what i want to do is to filter out all objects from this array whose visible property is NO, or if its parent/grandparent/etc visible property is true (child objects can have the visible property be YES while its parent can be NO).
I'm unclear as to how i would go about this using NSPredicate syntax to keep searching the parent node until there are no parents or the visible property is found. Is there any way to go about this?