NSRuleEditor
An interface for configuring a rule-based list of options.
Declaration
class NSRuleEditorOverview
A rule editor lets the user visually create and configure a list of options that are expressed as a predicate (as described in Predicate Programming Guide). Each row displayed by the rule editor represents a particular path down a tree of choices. The rule editor’s delegate provides the tree of choices to be displayed. The rule editor presents those choices to the user as a row of popup buttons, static text fields, and custom views.
NSRuleEditor exposes one binding, rows. You can bind rows to an ordered collection (such as an instance of NSMutableArray). Each object in the collection should have the following properties:
- @“rowType”
An integer representing the type of the row (
NSRuleEditorRowType).- @“subrows”
An ordered to-many relation (such as an instance of
NSMutableArray) containing the directly nested subrows for the given row.- @“displayValues”
An ordered to-many relation containing the display values for the row.
- @“criteria”
An ordered to-many relation containing the criteria for the row.
Topics
Configuring the Delegate
Configuring a Rule Editor
Working with Formatting
Providing Data
Obtaining Row Information
numberOfRowsparentRow(forRow:)row(forDisplayValue:)rowType(forRow:)NSRuleEditor.RowTypesubrowIndexes(forRow:)