Returns the subpredicates that should be made sub-rows of a given predicate.
SDK
- macOS 10.5+
Framework
- App
Kit
Declaration
func displayableSubpredicates(of predicate: NSPredicate) -> [NSPredicate]?
Parameters
predicate
A predicate object.
Return Value
The subpredicates that should be made sub-rows of predicate
. For compound predicates (instances of NSCompound
), the array of subpredicates; for other types of predicate, returns nil
. If a template represents a predicate in its entirety, or if the predicate has no subpredicates, returns nil
.
Discussion
You can override this method to create custom templates that handle complicated compound predicates.