Instance Method

parentRowForRow:

Returns the index of the parent of a given row.

Declaration

- (NSInteger)parentRowForRow:(NSInteger)rowIndex;

Parameters

rowIndex

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

numberOfRows

The number of rows in the rule editor.

- rowForDisplayValue:

Returns the index of the row containing a given value.

- rowTypeForRow:

Returns the type of a given row.

NSRuleEditorRowType

Specifies a type for row types.

- subrowIndexesForRow:

Returns the immediate subrows of a given row.