---
title: "selectItem(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscomboboxcell/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 row to select.

## 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 cell’s text field.

## See Also

### Related Documentation

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

### Manipulating the Selection

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