Instance Method


Returns the index of the parent of a given row.


func parentRow(forRow rowIndex: Int) -> Int



The index of a row in the receiver.

Return Value

The index of the parent of the row at rowIndex. If the row at rowIndex is a root row, returns -1.

See Also

Obtaining Row Information

var numberOfRows: Int

The number of rows in the rule editor.

func row(forDisplayValue: Any) -> Int

Returns the index of the row containing a given value.

enum NSRuleEditor.RowType

Specifies a type for row types.

func subrowIndexes(forRow: Int) -> IndexSet

Returns the immediate subrows of a given row.