Instance Method


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


- (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard;



The pasteboard containing the data to read.

Return Value

YES if your implementation was able to read the pasteboard data successfully; otherwise, NO.


You implement this method to replace your application's current selection (that is, the text or objects that are currently selected) with the data on the pasteboard. The data would have been placed in the pasteboard by another application in response to a remote message from the Services menu. A readSelectionFromPasteboard: message is sent to the same object that previously received a writeSelectionToPasteboard:types: message.

See Also

Working with Pasteboards

- writeSelectionToPasteboard:types:

Writes the current selection to the pasteboard.