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

# delegate

Sets the receiver’s delegate.

## Declaration

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

## Parameters

- `anObject`: The delegate for the receiver. The delegate must conform to the doc://com.apple.appkit/documentation/AppKit/NSComboBoxDelegate protocol.
