<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSComboBoxCell/selectItem(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSComboBoxCell(im)selectItemAtIndex:"
  },
  "title" : "selectItem(at:)"
}
-->

# selectItem(at:)

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

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

## Parameters

`index`

The index of the row to select.

## Discussion

Posts an [`selectionDidChangeNotification`](/documentation/AppKit/NSComboBox/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

[`objectValue`](/documentation/AppKit/NSControl/objectValue)

The value of the receiver’s cell as an Objective-C object.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)