Instance Method

addItems(withObjectValues:)

Adds multiple objects to the internal item list.

Declaration

func addItems(withObjectValues objects: [Any])

Parameters

objects

The object to add to the end of the combo box’s internal item list.

Discussion

This method logs a warning if usesDataSource is true.

See Also

Working with an Internal List

func addItem(withObjectValue: Any)

Adds the specified object to the internal item list.

func insertItem(withObjectValue: Any, at: Int)

Inserts an object at the specified location in the internal item list.

var objectValues: [Any]

The combo box’s internal item list in an array.

func removeAllItems()

Removes all items from the combo box’s internal item list.

func removeItem(at: Int)

Removes the object at the specified location from the combo box’s internal item list.

func removeItem(withObjectValue: Any)

Removes all occurrences of the specified object from the combo box’s internal item list.

var numberOfItems: Int

The total number of items in the pop-up list.