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

# delegate

The custom object from your app that provides the items to share.

## Declaration

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

## Discussion

Discussion Use your delegate object to provide the set of items you want to share from your window. If this property is nil, AppKit disables the toolbar item.

## See Also

### Getting the Toolbar Items

- [NSSharingServicePickerToolbarItemDelegate](appkit/nssharingservicepickertoolbaritemdelegate.md)
- [activityItemsConfiguration](appkit/nssharingservicepickertoolbaritem/activityitemsconfiguration.md)
