Instance Method

releaseGlobally()

Releases the receiver’s resources in the pasteboard server.

Declaration

func releaseGlobally()

Discussion

After this method is invoked, no other application can use the receiver.

See Also

Creating and Releasing a Pasteboard

class var general: NSPasteboard

Returns the general NSPasteboard object.

init(byFilteringData: Data, ofType: NSPasteboard.PasteboardType)

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.

init(byFilteringFile: String)

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.

init(byFilteringTypesIn: NSPasteboard)

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.

init(name: NSPasteboard.Name)

Returns the pasteboard with the specified name.

struct NSPasteboard.Name

The NSPasteboard class defines the following named pasteboards.

class func withUniqueName() -> NSPasteboard

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