<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPopUpButton/itemArray",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPopUpButton(py)itemArray"
  },
  "title" : "itemArray"
}
-->

# itemArray

The array of menu item objects associated with the button.

```
var itemArray: [NSMenuItem] { get }
```

## Discussion

This property contains an array of [`NSMenuItem`](/documentation/AppKit/NSMenuItem) objects representing the items in the menu. Usually, you access menu items using the methods and properties of this class rather than accessing the items directly.

## See Also

[`-  insertItemWithTitle:atIndex:`](/documentation/AppKit/NSPopUpButton/insertItem(withTitle:at:))

Inserts an item at the specified position in the menu.

[`-  removeItemAtIndex:`](/documentation/AppKit/NSPopUpButton/removeItem(at:))

Removes the item at the specified index.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)