NSRule 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.5+
NSRule exposes one binding,
rows. You can bind
rows to an ordered collection (such as an instance of
NSMutable). Each object in the collection should have the following properties:
An integer representing the type of the row (
Editor Row Type
An ordered to-many relation (such as an instance of
NSMutable) 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.