Protocol

NSRuleEditorDelegate

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

Declaration

@protocol NSRuleEditorDelegate

Topics

Providing Data

- ruleEditor:child:forCriterion:withRowType:

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

Required.

- ruleEditor:displayValueForCriterion:inRow:

Returns the value for a given criterion.

Required.

- ruleEditor:numberOfChildrenForCriterion:withRowType:

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

Required.

- ruleEditor:predicatePartsForCriterion:withDisplayValue:inRow:

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

NSRuleEditorPredicatePartKey

These strings are used as keys to the dictionary returned from the delegate’s ruleEditor:predicatePartsForCriterion:withDisplayValue:inRow: optional method. To construct a valid predicate, the union of the dictionaries for each item in the row must contain the required parts.

Monitoring Row Changes

- ruleEditorRowsDidChange:

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

Relationships

Inherits From

See Also

Configuring the Delegate

delegate

The rule editor’s delegate.