---
title: "select(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspopupbutton/select(_:)"
---

# select(_:)

Selects the specified menu item.

## Declaration

```swift
func select(_ item: NSMenuItem?)
```

## Parameters

- `item`: The menu item to select, or nil if you want to deselect all menu items.

## See Also

### Setting the current selection

- [selectItem(at:)](appkit/nspopupbutton/selectitem(at:).md)
- [selectItem(withTag:)](appkit/nspopupbutton/selectitem(withtag:).md)
- [selectItem(withTitle:)](appkit/nspopupbutton/selectitem(withtitle:).md)
