Protocol

NSPasteboardWriting

A set of methods that defines the interface for retrieving a representation of an object that can be written to a pasteboard.

Declaration

@protocol NSPasteboardWriting

Overview

The Cocoa framework classes NSString, NSAttributedString, NSURL, NSColor, NSSound, NSImage, and NSPasteboardItem implement this protocol. You can make your custom class conform to this protocol so that you can write instances of the class to a pasteboard using the writeObjects: method of NSPasteboard.

Topics

Required Methods

- writableTypesForPasteboard:

Returns an array of UTI strings of data types the receiver can write to a given pasteboard.

Required.

- writingOptionsForType:pasteboard:

Returns options for writing data of a specified type to a given pasteboard.

NSPasteboardWritingOptions

Type to specify options for writing to a pasteboard.

Property List for Type

- pasteboardPropertyListForType:

Returns a property list object to represent the receiver on a pasteboard as an object of a specified type.

Required.

Constants

Pasteboard Writing Options

Constant to specify options for writing to a pasteboard, used by writingOptionsForType:pasteboard:.

NSPasteboardWritingOptions

Type to specify options for writing to a pasteboard.

Relationships

Inherits From

See Also

Pasteboard

NSPasteboard

An object that transfers data to and from the pasteboard server.

NSPasteboardItem

An item on a pasteboard.

NSPasteboardReading

A set of methods that defines the interface for initializing an object from a pasteboard.

NSPasteboardItemDataProvider

A set of methods implemented by the data provider of a pasteboard item to provide the data for a particular UTI type.