Instance Method

rowForDisplayValue:

Returns the index of the row containing a given value.

Declaration

- (NSInteger)rowForDisplayValue:(id)displayValue;

Parameters

displayValue

The display value (string, view, or menu item) of an item in the receiver. This value must not be nil.

Return Value

The index of the row containing displayValue, or NSNotFound.

Discussion

This method searches each row via pointer equality for the given display value, which may be present as an alternative in a popup menu for that row.

See Also

Obtaining Row Information

numberOfRows

The number of rows in the rule editor.

- parentRowForRow:

Returns the index of the parent of a given row.

- rowTypeForRow:

Returns the type of a given row.

NSRuleEditorRowType

Specifies a type for row types.

- subrowIndexesForRow:

Returns the immediate subrows of a given row.