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

# orderFrontSharingServicePicker(_:)

Creates and displays a new instance of the sharing service picker.

```
@IBAction func orderFrontSharingServicePicker(_ sender: Any?)
```

## Parameters

`sender`

The sender.

## Discussion

Creates a new instance of [`NSSharingServicePicker`](/documentation/AppKit/NSSharingServicePicker) based on the current selection and shows to the screen. The items passed to the [`NSSharingServicePicker`](/documentation/AppKit/NSSharingServicePicker) initializer are determined using the delegate method `textView:willShowSharingServicePicker:forItems:`.

When the current selection is 0 length, the whole document is passed to the method.

---

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)