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

# item(withTitle:)

Returns the menu item with the specified title.

## Declaration

```swift
func item(withTitle title: String) -> NSMenuItem?
```

## Parameters

- `title`: The title of the menu item you want.

## Return Value

Return Value The menu item, or nil if no item with the specified title exists in the menu.

## See Also

### Related Documentation

- [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(at:)](appkit/nspopupbuttoncell/item(at:).md)
- [lastItem](appkit/nspopupbuttoncell/lastitem.md)
