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

# delegate

The delegate of the menu.

## Declaration

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

## Discussion

Discussion This property indicates the delegate of the menu. You can use the delegate to populate a menu just before it is drawn and to check for key equivalents without creating a menu item.

## See Also

### Related Documentation

- [NSMenuDelegate](appkit/nsmenudelegate.md)
