<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTouchBar/defaultItemIdentifiers",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTouchBar(py)defaultItemIdentifiers"
  },
  "title" : "defaultItemIdentifiers"
}
-->

# defaultItemIdentifiers

A required list of identifiers for items that you want to appear in the Touch Bar after instantiating it.

```
var defaultItemIdentifiers: [NSTouchBarItem.Identifier] { get set }
```

## Discussion

Always specify this property for an [`NSTouchBar`](/documentation/AppKit/NSTouchBar) object, even if you elect to make the bar noncustomizable. The system:

- Shows this list’s items by default when the system displays the bar.
- Includes a preconfigured bar, containing these items, in the associated customization UI (when you have assigned the bar a [`customizationIdentifier`](/documentation/AppKit/NSTouchBar/customizationIdentifier-swift.property) property value); the user can drag the default bar into the Touch Bar, should they want to return to the default configuration.

The system archives this property.

## See Also

[`customizationIdentifier`](/documentation/AppKit/NSTouchBar/customizationIdentifier-swift.property)

A globally unique string that makes the Touch Bar eligible for user customization.

[`customizationRequiredItemIdentifiers`](/documentation/AppKit/NSTouchBar/customizationRequiredItemIdentifiers)

An optional list of identifiers for items you want to always appear in the Touch Bar and which the user can’t remove during customization.

[`customizationAllowedItemIdentifiers`](/documentation/AppKit/NSTouchBar/customizationAllowedItemIdentifiers)

A list of identifiers for items to show in the Touch Bar’s customization UI.

[`itemIdentifiers`](/documentation/AppKit/NSTouchBar/itemIdentifiers)

The list of identifiers for the current items in the Touch Bar.



---

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)