Return to the Main Index
Return to the Alphabetic Index

Copyright (c) 1994 by NeXT Computer, Inc. All Rights Reserved.

NSServicesRequests

(informal protocol)

Category Of: NSObject

Declared In: AppKit/NSApplication.h

Protocol Description

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.

Pasteboard Read/Write

- (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.