Contents

ruleEditor(_:numberOfChildrenForCriterion:with:)

Returns the number of child items of a given criterion or row type.

Declaration

@MainActor func ruleEditor(_ editor: NSRuleEditor, numberOfChildrenForCriterion criterion: Any?, with rowType: NSRuleEditor.RowType) -> 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 rowType.

Discussion

The delegate must implement this method.

See Also

Providing Data