Instance Method


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


func match(for predicate: NSPredicate) -> Double

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

var templateViews: [NSView]

Returns the views for the receiver.

func setPredicate(NSPredicate)

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

func displayableSubpredicates(of: NSPredicate) -> [NSPredicate]?

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

func predicate(withSubpredicates: [NSPredicate]?) -> NSPredicate

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