Contents

numberOfItems(in:)

Returns the number of items managed for the combo box cell by your data source object.

Declaration

optional func numberOfItems(in comboBoxCell: NSComboBoxCell) -> Int

Parameters

  • comboBoxCell:

    The combo box cell for which your data source manages items.

Return Value

The number of items your data source object manages.

Discussion

An NSComboBoxCell object uses this method to determine how many items it should display in its pop-up list.

See Also

Instance Methods