Instance Method


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


- (double)matchForPredicate:(NSPredicate *)predicate;

Return Value

A positive number if the template can represent predicate, and 0 if it cannot.


By default, returns values in the range 0 to 1.

The highest match among all the templates determines which template is responsible for displaying the predicate. You can override this to determine which predicates your custom template handles.

See Also

Primitive Methods


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.

- predicateWithSubpredicates:

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