Instance Method

prepareForNewContents(with:)

Prepares the pasteboard to receive new contents, removing the existing pasteboard contents.

Declaration

func prepareForNewContents(with options: NSPasteboard.ContentsOptions = []) -> Int

See Also

Preparing the Pasteboard for Content

struct NSPasteboard.ContentsOptions

Options for preparing the pasteboard.