<!--
{
  "availability" : [
    "macOS: 10.8.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSharingService/delegate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSharingService(py)delegate"
  },
  "title" : "delegate"
}
-->

# delegate

Specifies the delegate of the sharing service.

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

## Discussion

The delegate class must conform to the [`NSSharingServiceDelegate`](/documentation/AppKit/NSSharingServiceDelegate) protocol.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)