NSRuleEditor object is a view that allows the user to visually create and configure a list of options which are expressed by the rule editor as a predicate (see Predicate Programming Guide). The view has a delegate which offers a tree of choices to the view. The choices are presented by the view to the user as a row of popup buttons, static text fields, and custom views. Each row in the list represents a particular path down the tree of choices.
- macOS 10.10+
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:
An integer representing the type of the row (
An ordered to-many relation (such as an instance of
NSMutableArray) containing the directly nested subrows for the given row.
An ordered to-many relation containing the display values for the row.
An ordered to-many relation containing the criteria for the row.