Contents

comboBoxCell(_:objectValueForItemAt:)

Returns the object that corresponds to the item at the given index in the combo box cell.

Declaration

optional func comboBoxCell(_ comboBoxCell: NSComboBoxCell, objectValueForItemAt index: Int) -> Any

Parameters

  • comboBoxCell:

    The combo box cell for which to return the item.

  • index:

    The index of the item to return.

Return Value

The object corresponding to the item at the specified index in the given combo box cell.

Discussion

An NSComboBoxCell object uses this method to populate the items displayed in its pop-up list.

See Also

Related Documentation

  • Combo Box Programming Topics

Instance Methods