---
title: "selectItem(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscombobox/selectitem(at:)"
---

# selectItem(at:)

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

## Declaration

```swift
func selectItem(at index: Int)
```

## Parameters

- `index`: The index of the item to select in the pop-up list.

## Discussion

Discussion Posts an selectionDidChangeNotification to the default notification center if the selection does in fact change. Note that this method does not alter the contents of the combo box’s text field—see Setting the Combo Box’s Value for more information.

## See Also

### Related Documentation

- [objectValue](appkit/nscontrol/objectvalue.md)

### Manipulating the Selection

- [deselectItem(at:)](appkit/nscombobox/deselectitem(at:).md)
- [indexOfSelectedItem](appkit/nscombobox/indexofselecteditem.md)
- [objectValueOfSelectedItem](appkit/nscombobox/objectvalueofselecteditem.md)
- [selectItem(withObjectValue:)](appkit/nscombobox/selectitem(withobjectvalue:).md)
