---
title: "pasteboard(_:item:provideDataForType:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspasteboarditemdataprovider/pasteboard(_:item:providedatafortype:)"
---

# pasteboard(_:item:provideDataForType:)

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

## Declaration

```swift
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

Discussion The receiver was previously set as the provider using setDataProvider(_:forTypes:).

## See Also

### Related Documentation

- [Drag and Drop](appkit/drag-and-drop.md)
- [NSPasteboard](appkit/nspasteboard.md)
- [Services Functions](appkit/services-functions.md)

### Providing Data

- [pasteboardFinishedWithDataProvider(_:)](appkit/nspasteboarditemdataprovider/pasteboardfinishedwithdataprovider(_:).md)
