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

# NSSharingServicePicker

A list of sharing services that the user can choose from.

```
class NSSharingServicePicker
```

## Overview

An [`NSSharingServicePicker`](/documentation/AppKit/NSSharingServicePicker) object presents an interface for sharing one or more items using a specific service. In macOS 12 and earlier, this picker displays a menu with a list of services that someone can use to share the item. In macOS 13 and later, the picker displays a popover with a preview of the item and the list of services. When someone chooses a service, the picker automatically shares the proposed item with that service.

Create a sharing service picker and configure it with a delegate object to monitor interactions. Your delegate must conform to the [`NSSharingServicePickerDelegate`](/documentation/AppKit/NSSharingServicePickerDelegate) protocol. Present the picker from your interface using the [`show(relativeTo:of:preferredEdge:)`](/documentation/AppKit/NSSharingServicePicker/show(relativeTo:of:preferredEdge:)) method.

## Topics

### Creating a sharing service picker

[`-  initWithItems:`](/documentation/AppKit/NSSharingServicePicker/init(items:))

Creates a new sharing service picker for the selected items.

### Managing the sharing service picker

[`delegate`](/documentation/AppKit/NSSharingServicePicker/delegate)

The object for managing the sharing service picker.

[`NSSharingServicePickerDelegate`](/documentation/AppKit/NSSharingServicePickerDelegate)

An interface for managing content for the macOS share sheet.

### Displaying the sharing service picker

[`-  showRelativeToRect:ofView:preferredEdge:`](/documentation/AppKit/NSSharingServicePicker/show(relativeTo:of:preferredEdge:))

Shows the picker interface and populates it with the relevant sharing services.

[`-  close`](/documentation/AppKit/NSSharingServicePicker/close())

Closes the picker interface.

### Retrieving the sharing menu item

[`standardShareMenuItem`](/documentation/AppKit/NSSharingServicePicker/standardShareMenuItem)

A menu item suitable to display the picker for the specified items.

### Classes

[`CollaborationModeRestriction`](/documentation/AppKit/NSSharingServicePicker/CollaborationModeRestriction)

Specifies whether a specific type of sharing should be disabled in the share picker, and if so, whether a reason should be provided for the disablement.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)