Instance Method

predicateWithSubpredicates:

Returns the predicate represented by the receiver’s views' values and the given sub-predicates.

Declaration

- (NSPredicate *)predicateWithSubpredicates:(NSArray<NSPredicate *> *)subpredicates;

Parameters

subpredicates

An array of predicates.

Return Value

The predicate represented by the values of the template's views and the given subpredicates. You can override this method to return the predicate represented by your custom views.

Discussion

This method is only called if matchForPredicate: returned a positive value for the receiver.

You can override this method to return the predicate represented by a custom view.

See Also

Primitive Methods

- matchForPredicate:

Returns a positive number if the receiver can represent a given predicate, and 0 if it cannot.

templateViews

Returns the views for the receiver.

- setPredicate:

Sets the value of the views according to the given predicate.

- displayableSubpredicatesOfPredicate:

Returns the subpredicates that should be made sub-rows of a given predicate.