Protocol

NSPasteboardItemDataProvider

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

Declaration

@protocol NSPasteboardItemDataProvider

Overview

You can specify an object as a pasteboard data provider for a pasteboard item using NSPasteboardItem’s setDataProvider:forTypes: method. The data provider must implement this protocol to provide data upon request.

Topics

Providing Data

- pasteboard:item:provideDataForType:

Asks the receiver to provide data for a specified type to a given pasteboard.

Required.

- pasteboardFinishedWithDataProvider:

Informs the receiver that the pasteboard no longer needs the data provider for any of its pasteboard items.

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.

NSPasteboardWriting

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