---
title: "prepareForNewContents(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspasteboard/preparefornewcontents(with:)"
---

# prepareForNewContents(with:)

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

## Declaration

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

## See Also

### Preparing the pasteboard for content

- [NSPasteboard.ContentsOptions](appkit/nspasteboard/contentsoptions.md)
