---
title: "write(to:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nssound/write(to:)"
---

# write(to:)

Writes the receiver’s data to a pasteboard.

## Declaration

```swift
func write(to pasteboard: NSPasteboard)
```

## Parameters

- `pasteboard`: Pasteboard to which the receiver is to write its data.
