<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTouchBarDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTouchBarDelegate"
  },
  "title" : "NSTouchBarDelegate"
}
-->

# NSTouchBarDelegate

A protocol that allows you to provide the items for a bar dynamically.

```
protocol NSTouchBarDelegate : NSObjectProtocol
```

## Overview

Use a bar delegate, according to the needs of your app, to dynamically create items ([`NSTouchBarItem`](/documentation/AppKit/NSTouchBarItem) instances). For more information, see [`Item objects`](/documentation/AppKit/NSTouchBar#Item-objects).

## Topics

### Providing bar items

[`-  touchBar:makeItemForIdentifier:`](/documentation/AppKit/NSTouchBarDelegate/touchBar(_:makeItemForIdentifier:))

Asks the delegate object for the bar item for the specified bar and item identifier.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Conforming Types

[`NSTextView`](/documentation/AppKit/NSTextView)

---

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)