Contents

row(forDisplayValue:)

Returns the index of the row containing a given value.

Declaration

func row(forDisplayValue displayValue: Any) -> Int

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