---
title: "item(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspopupbuttoncell/item(at:)"
---

# item(at:)

Returns the menu item at the specified index.

## Declaration

```swift
func item(at index: Int) -> NSMenuItem?
```

## Parameters

- `index`: The index of the item you want. The specified index must refer to an existing menu item.

## Return Value

Return Value The menu item, or nil if no item exists at the specified index.

## See Also

### Related Documentation

- [item(at:)](appkit/nsmenu/item(at:).md)
- [itemTitle(at:)](appkit/nspopupbuttoncell/itemtitle(at:).md)

### Accessing the items

- [itemArray](appkit/nspopupbuttoncell/itemarray.md)
- [numberOfItems](appkit/nspopupbuttoncell/numberofitems.md)
- [index(of:)](appkit/nspopupbuttoncell/index(of:).md)
- [indexOfItem(withTitle:)](appkit/nspopupbuttoncell/indexofitem(withtitle:).md)
- [indexOfItem(withTag:)](appkit/nspopupbuttoncell/indexofitem(withtag:).md)
- [indexOfItem(withRepresentedObject:)](appkit/nspopupbuttoncell/indexofitem(withrepresentedobject:).md)
- [indexOfItem(withTarget:andAction:)](appkit/nspopupbuttoncell/indexofitem(withtarget:andaction:).md)
- [item(withTitle:)](appkit/nspopupbuttoncell/item(withtitle:).md)
- [lastItem](appkit/nspopupbuttoncell/lastitem.md)
