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

# delegate

The delegate for messages from the field editor.

## Declaration

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

## See Also

### Related Documentation

- [textShouldEndEditing(_:)](appkit/nsmatrix/textshouldendediting(_:).md)
- [textShouldBeginEditing(_:)](appkit/nsmatrix/textshouldbeginediting(_:).md)

### Managing the Delegate

- [NSMatrixDelegate](appkit/nsmatrixdelegate.md)
