comboBox(_:objectValueForItemAt:)
Returns the object that corresponds to the item at the specified index in the combo box.
Declaration
@MainActor optional func comboBox(_ comboBox: NSComboBox, objectValueForItemAt index: Int) -> Any?Parameters
- comboBox:
The combo box.
- index:
The index of the item to return.
Return Value
The object corresponding to the specified index number.
Discussion
An NSComboBox object uses this method to populate the items displayed in its pop-up list.
See Also
Related Documentation
- Combo Box Programming Topics