Instance Method

subrowIndexes(forRow:)

Returns the immediate subrows of a given row.

Declaration

func subrowIndexes(forRow rowIndex: Int) -> IndexSet

Parameters

rowIndex

The index of a row in the receiver, or -1 to get the top-level rows.

Return Value

The immediate subrows of the row at rowIndex.

Discussion

Rows are numbered starting at 0.

See Also

Obtaining Row Information

var numberOfRows: Int

The number of rows in the rule editor.

func parentRow(forRow: Int) -> Int

Returns the index of the parent of a given row.

func row(forDisplayValue: Any) -> Int

Returns the index of the row containing a given value.

enum NSRuleEditor.RowType

Specifies a type for row types.