<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPasteboardTypeOwner/pasteboard(_:provideDataForType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSPasteboardTypeOwner(im)pasteboard:provideDataForType:"
  },
  "title" : "pasteboard(_:provideDataForType:)"
}
-->

# pasteboard(_:provideDataForType:)

Requests that the object provide data for the data type to the pasteboard.

```
func pasteboard(_ sender: NSPasteboard, provideDataForType type: NSPasteboard.PasteboardType)
```

## Parameters

`sender`

The pasteboard requesting data.

`type`

The data type.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)