---
title: delegate
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstoolbar/delegate
---

# delegate

The object you use to customize the toolbar contents and configuration.

## Declaration

```swift
weak var delegate: (any NSToolbarDelegate)? { get set }
```

## Discussion

Discussion Assign an object to this property if you customize the toolbar’s behavior. The object you assign to this property must adopt the NSToolbarDelegate protocol.

## See Also

### Configuring the toolbar contents

- [NSToolbarDelegate](appkit/nstoolbardelegate.md)
