---
title: "orderFrontSharingServicePicker(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextview/orderfrontsharingservicepicker(_:)"
---

# orderFrontSharingServicePicker(_:)

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

## Declaration

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

## Parameters

- `sender`: The sender.

## Discussion

Discussion Creates a new instance of NSSharingServicePicker based on the current selection and shows to the screen. The items passed to the 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.
