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

# delegate

The app delegate object.

## Declaration

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

## Discussion

Discussion The app object and app delegate work in tandem to manage the app’s overall behavior. Typically, the delegate is configured automatically by the Xcode project templates.

## See Also

### Managing the app’s behavior

- [NSApplicationDelegate](appkit/nsapplicationdelegate.md)
