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

# numberOfItems

The total number of items in the pop-up list.

## Declaration

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

## See Also

### Related Documentation

- [numberOfVisibleItems](appkit/nscombobox/numberofvisibleitems.md)

### Configuring the Combo Box Items

- [addItems(withObjectValues:)](appkit/nscombobox/additems(withobjectvalues:).md)
- [addItem(withObjectValue:)](appkit/nscombobox/additem(withobjectvalue:).md)
- [insertItem(withObjectValue:at:)](appkit/nscombobox/insertitem(withobjectvalue:at:).md)
- [objectValues](appkit/nscombobox/objectvalues.md)
- [removeAllItems()](appkit/nscombobox/removeallitems().md)
- [removeItem(at:)](appkit/nscombobox/removeitem(at:).md)
- [removeItem(withObjectValue:)](appkit/nscombobox/removeitem(withobjectvalue:).md)
