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

# NSServicesMenuRequestor

A set of methods that support interaction with items users can share through a sharing service.

```
protocol NSServicesMenuRequestor : NSObjectProtocol
```

## Overview

This informal protocol consists of two methods, [`writeSelection(to:types:)`](/documentation/AppKit/NSServicesMenuRequestor/writeSelection(to:types:)) and [`readSelection(from:)`](/documentation/AppKit/NSServicesMenuRequestor/readSelection(from:)). The first method provides data to a remote service, and the second receives any data the remote service might send back. Both respond to messages that are generated when the user chooses a command from the Services menu.

## Topics

### Working with Pasteboards

[`readSelection(from:)`](/documentation/AppKit/NSServicesMenuRequestor/readSelection(from:))

Reads data from the pasteboard and uses it to replace the current selection.

[`writeSelection(to:types:)`](/documentation/AppKit/NSServicesMenuRequestor/writeSelection(to:types:))

Writes the current selection to the pasteboard.



---

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)