Protocol

NSRuleEditorDelegate

The NSRuleEditorDelegate protocol defines the optional methods implemented by delegates of NSRuleEditor objects.

Topics

Providing Data

func ruleEditor(NSRuleEditor, child: Int, forCriterion: Any?, with: NSRuleEditor.RowType)

Returns the child of a given item at a given index.

Required.

func ruleEditor(NSRuleEditor, displayValueForCriterion: Any, inRow: Int)

Returns the value for a given criterion.

Required.

func ruleEditor(NSRuleEditor, numberOfChildrenForCriterion: Any?, with: NSRuleEditor.RowType)

Returns the number of child items of a given criterion or row type.

Required.

func ruleEditor(NSRuleEditor, predicatePartsForCriterion: Any, withDisplayValue: Any, inRow: Int)

Returns a dictionary representing the parts of the predicate determined by the given criterion and value.

Monitoring Row Changes

func ruleEditorRowsDidChange(Notification)

Notifies the receiver that a rule editor’s rows changed.

Relationships

Inherits From

See Also

Configuring the Delegate

var delegate: NSRuleEditorDelegate?

The rule editor’s delegate.