The NSRule
protocol defines the optional methods implemented by delegates of NSRule
objects.
SDK
- macOS 10.6+
Framework
- App
Kit
Declaration
protocol NSRuleEditorDelegate
The NSRule
protocol defines the optional methods implemented by delegates of NSRule
objects.
SDK
Framework
protocol NSRuleEditorDelegate
func rule Editor(NSRule Editor, child: Int, for Criterion: Any?, with: NSRule Editor .Row Type) -> Any
Returns the child of a given item at a given index.
Required.
func rule Editor(NSRule Editor, display Value For Criterion: Any, in Row: Int) -> Any
Returns the value for a given criterion.
Required.
func rule Editor(NSRule Editor, number Of Children For Criterion: Any?, with: NSRule Editor .Row Type) -> Int
Returns the number of child items of a given criterion or row type.
Required.
func rule Editor(NSRule Editor, predicate Parts For Criterion: Any, with Display Value: Any, in Row: Int) -> [NSRule Editor .Predicate Part Key : Any]?
Returns a dictionary representing the parts of the predicate determined by the given criterion and value.
struct NSRule Editor .Predicate Part Key
These strings are used as keys to the dictionary returned from the delegate’s rule
optional method. To construct a valid predicate, the union of the dictionaries for each item in the row must contain the required parts.
func rule Editor Rows Did Change(Notification)
Notifies the receiver that a rule editor’s rows changed.
var delegate: NSRule Editor Delegate?
The rule editor’s delegate.