---
title: NSTouchBarDelegate
framework: appkit
role: symbol
role_heading: Protocol
path: appkit/nstouchbardelegate
---

# NSTouchBarDelegate

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

## Declaration

```swift
protocol NSTouchBarDelegate : NSObjectProtocol
```

## Overview

Overview Use a bar delegate, according to the needs of your app, to dynamically create items (NSTouchBarItem instances). For more information, see Item objects.

## Topics

### Providing bar items

- [touchBar(_:makeItemForIdentifier:)](appkit/nstouchbardelegate/touchbar(_:makeitemforidentifier:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

### Conforming Types

- [NSTextView](appkit/nstextview.md)

## See Also

### Essentials

- [Integrating a Toolbar and Touch Bar into Your App](appkit/integrating-a-toolbar-and-touch-bar-into-your-app.md)
- [Creating and Customizing the Touch Bar](appkit/creating-and-customizing-the-touch-bar.md)
- [NSTouchBar](appkit/nstouchbar.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
