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

# pasteboard(_:item:provideDataForType:)

Asks the receiver to provide data for a specified type to a given pasteboard.

```
nonisolated func pasteboard(_ pasteboard: NSPasteboard?, item: NSPasteboardItem, provideDataForType type: NSPasteboard.PasteboardType)
```

## Parameters

`pasteboard`

A pasteboard to which the receiver has promised to provide data.

`item`

A pasteboard item for which the receiver has promised to provide data

`type`

A UTI type string.

## Discussion

The receiver was previously set as the provider using [`setDataProvider(_:forTypes:)`](/documentation/AppKit/NSPasteboardItem/setDataProvider(_:forTypes:)).

## See Also

[Drag and Drop](/documentation/AppKit/drag-and-drop)

Support the direct manipulation of your app’s content using drag and drop.

[`NSPasteboard`](/documentation/AppKit/NSPasteboard)

An object that transfers data to and from the pasteboard server.

[Services Functions](/documentation/AppKit/services-functions)

Configure the contents of your app’s Services menu.



---

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)