Type Method

pasteboardWithUniqueName

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

Declaration

+ (NSPasteboard *)pasteboardWithUniqueName;

Return Value

The new pasteboard object.

Discussion

This method is useful for apps that implement their own interprocess communication using pasteboards. Because the lifetime of a unique pasteboard is not related to the lifetime of the creating app, you must release a unique pasteboard by calling releaseGlobally to avoid possible leaks.

See Also

Creating and Releasing a Pasteboard

generalPasteboard

Returns the general NSPasteboard object.

pasteboardByFilteringData:ofType:

Creates and returns a new pasteboard with a unique name that supplies the specified data in as many types as possible given the available filter services.

pasteboardByFilteringFile:

Creates and returns a new pasteboard with a unique name that supplies the specified file data in as many types as possible given the available filter services.

pasteboardByFilteringTypesInPasteboard:

Creates and returns a new pasteboard with a unique name that supplies the specified pasteboard data in as many types as possible given the available filter services.

pasteboardWithName:

Returns the pasteboard with the specified name.

releaseGlobally

Releases the receiver’s resources in the pasteboard server.