---
title: numberOfItems
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspopupbuttoncell/numberofitems
---

# numberOfItems

The number of items in the menu.

## Declaration

```swift
var numberOfItems: Int { get }
```

## See Also

### Related Documentation

- [count](foundation/nsarray/count.md)

### Accessing the items

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