Protocol

NSServicesMenuRequestor

This informal protocol consists of two methods, writeSelectionToPasteboard:types: and 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.

Symbols

Working with Pasteboards

func readSelection(from: NSPasteboard)

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

func writeSelection(to: NSPasteboard, types: [String])

Writes the current selection to the pasteboard.

Relationships

Inherits From