---
title: delegate
framework: Scripting Bridge
role: symbol
role_heading: Instance Property
platforms: [Mac Catalyst 13.0+, macOS 10.5+]
path: scriptingbridge/sbapplication/delegate
---

# delegate

The error-handling delegate of the receiver.

## Declaration

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

## Discussion

Discussion The delegate should implement the eventDidFail(_:withError:) method of the SBApplicationDelegate informal protocol.
