---
title: makeTouchBar()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsresponder/maketouchbar()
---

# makeTouchBar()

Your custom subclass of the NSResponder class should override this method to create and configure your subclass’s default NSTouchBar object.

## Declaration

```swift
func makeTouchBar() -> NSTouchBar?
```

## See Also

### Supporting the Touch Bar

- [touchBar](appkit/nsresponder/touchbar.md)
