Name
NSServicesRequests — Mac OS X 10.0
Synopsis
This informal protocol declares the two methods
writeSelectionToPasteboard:types
: and
readSelectionFromPasteboard
:, which classes may
implement to interact with system services found in the Services
menu. The first of these,
writeSelectionToPasteboard:types
:, is used to
provide data to a service, while
readSelectionFromPasteboard
: is used to retrieve
data from a service.
@interface NSObject (NSServicesRequests)
|
// Instance Methods
|
- (BOOL)writeSelectionToPasteboard:(NSPasteboard *)pboard types:(NSArray *)types; |
- (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard; |
@end |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.