Returns the number of child items of a given criterion or row type.
Required.
SDK
- macOS 10.5+
Framework
- App
Kit
Declaration
func ruleEditor(_ editor: NSRule Editor, numberOfChildrenForCriterion criterion: Any?, with rowType: NSRule Editor.Row Type) -> Int
Parameters
editor
The rule editor that sent the message.
criterion
The criterion for which the number of children is required.
rowType
The type of row of
criterion
.
Return Value
The number of child items of criterion
. If criterion
is nil
, return the number of root criteria for the row type row
.
Discussion
The delegate must implement this method.