---
title: touchBar
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsresponder/touchbar
---

# touchBar

The NSTouchBar object associated with the responder.

## Declaration

```swift
var touchBar: NSTouchBar? { get set }
```

## Discussion

Discussion If you have not explicitly provided an NSTouchBar object for a responder by setting this property, the system sends the makeTouchBar() message to the responder to create the default bar. This property is archived.

## See Also

### Supporting the Touch Bar

- [makeTouchBar()](appkit/nsresponder/maketouchbar().md)
