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

# item(at:)

Returns the menu item at a specific location of the menu.

## Declaration

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

## Parameters

- `index`: An integer index locating a menu item in a menu.

## Return Value

Return Value The found menu item (an object conforming to the NSMenuItem protocol) or nil if the object couldn’t be found.

## Discussion

Discussion This method raises an exception if index is out of bounds.

## See Also

### Related Documentation

- [index(of:)](appkit/nsmenu/index(of:).md)

### Finding Menu Items

- [item(withTag:)](appkit/nsmenu/item(withtag:).md)
- [item(withTitle:)](appkit/nsmenu/item(withtitle:).md)
- [numberOfItems](appkit/nsmenu/numberofitems.md)
- [items](appkit/nsmenu/items.md)
