<!--
{
  "availability" : [
    "macOS: 10.8.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSharingServicePickerDelegate/sharingServicePicker(_:didChoose:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSSharingServicePickerDelegate(im)sharingServicePicker:didChooseSharingService:"
  },
  "title" : "sharingServicePicker(_:didChoose:)"
}
-->

# sharingServicePicker(_:didChoose:)

Tells the delegate that the person selected a sharing service for the current item.

```
optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
```

## Parameters

`sharingServicePicker`

The sharing service picker.

`service`

The selected sharing service. Invoked to give the delegate to the sharing service that is about to be executed.

## Discussion

After someone chooses a service, the sharing service picker calls this method to let you know which service they picked. The sharing service receives the item sometime after this method returns.

---

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)