Category Of: NSObject
Declared In: AppKit/NSApplication.h
This informal protocol consists of two methods, writeSelectionToPasteboard:types: and readSelectionFromPasteboard:. The first is implemented to provide data to a remote service, and the second to receive 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.
- (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard
Implemented to replace the current selection (that is, the text or objects that are currently selected) with data from pboard.
- (BOOL)writeSelectionToPasteboard:(NSPasteboard *)pboard
types:(NSArray *)types Implemented to write the current selection to pboard as types data.