Type Method

pasteboardByFilteringData:ofType:

Creates a new pasteboard object that supplies the specified data in as many types as possible based on the available filter services.

Declaration

+ (NSPasteboard *)pasteboardByFilteringData:(NSData *)data ofType:(NSPasteboardType)type;

Parameters

data

The data to be placed on the pasteboard.

type

The type of data in the data parameter.

Return Value

The new pasteboard object.

Discussion

The returned pasteboard also declares data of the supplied type.

No filter service is invoked until the data is actually requested, so invoking this method is reasonably inexpensive.

See Also

Creating and Releasing a Pasteboard

generalPasteboard

The shared pasteboard object to use for general content.

+ pasteboardByFilteringFile:

Creates a new pasteboard object that supplies the specified file in as many types as possible based on the available filter services.

+ pasteboardByFilteringTypesInPasteboard:

Creates a new pasteboard object that supplies the specified pasteboard data in as many types as possible based on the available filter services.

+ pasteboardWithName:

Returns the pasteboard with the specified name.

NSPasteboardName

Constants for the standard pasteboard names.

+ pasteboardWithUniqueName

Creates and returns a new pasteboard with a name that is guaranteed to be unique with respect to other pasteboards in the system.

- releaseGlobally

Releases the receiver’s resources in the pasteboard server.