Instance Property

indexOfSelectedItem

The index of the last item selected from the pop-up list.

Declaration

@property(readonly) NSInteger indexOfSelectedItem;

Discussion

The index of the last item selected from the combo box's pop-up list or –1 if no item is selected. Note that nothing is initially selected in a newly initialized combo box cell.

See Also

Manipulating the Selection

- deselectItemAtIndex:

Deselects the pop-up list item at the given index if it’s selected.

objectValueOfSelectedItem

The object corresponding to the last item selected from the pop-up list.

- selectItemAtIndex:

Selects the pop-up list row at the given index.

- selectItemWithObjectValue:

Selects the first pop-up list item that corresponds to the specified object.