<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSItemProviderWriting",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSItemProviderWriting"
  },
  "title" : "NSItemProviderWriting"
}
-->

# NSItemProviderWriting

The protocol for implementing a class to allow an item provider to retrieve data from an instance of the class.

```
protocol NSItemProviderWriting : NSObjectProtocol
```

## Overview

A source app uses an object that conforms to this protocol to initialize an item provider for a copied or dragged item.

## Topics

### Loading data

[`-  loadDataWithTypeIdentifier:forItemProviderCompletionHandler:`](/documentation/Foundation/NSItemProviderWriting/loadData(withTypeIdentifier:forItemProviderCompletionHandler:))

Loads data of a particular type, identified by the given UTI.

### Getting the writable type identifiers

[`writableTypeIdentifiersForItemProvider`](/documentation/Foundation/NSItemProviderWriting/writableTypeIdentifiersForItemProvider-swift.type.property)

An array of UTI strings representing the types of data that can be loaded for an item provider.

[`writableTypeIdentifiersForItemProvider`](/documentation/Foundation/NSItemProviderWriting/writableTypeIdentifiersForItemProvider-swift.property)

An array of UTI strings representing the types of data that can be loaded for an item provider.

### Getting the representation visibility specification

The representation visibility specifications control which categories of processes can see the item provider.

[`+  itemProviderVisibilityForRepresentationWithTypeIdentifier:`](/documentation/Foundation/NSItemProviderWriting/itemProviderVisibilityForRepresentation(withTypeIdentifier:)-swift.type.method)

Asks the item provider for the default representation visibility specification for the given UTI.

[`-  itemProviderVisibilityForRepresentationWithTypeIdentifier:`](/documentation/Foundation/NSItemProviderWriting/itemProviderVisibilityForRepresentation(withTypeIdentifier:)-swift.method)

Asks the item provider for the representation visibility specification for the given UTI.

## Relationships

### Conforming Types

[`NSAttributedString`](/documentation/Foundation/NSAttributedString)

[`NSURL`](/documentation/Foundation/NSURL)

[`NSString`](/documentation/Foundation/NSString)

[`NSUserActivity`](/documentation/Foundation/NSUserActivity)

[`NSMutableString`](/documentation/Foundation/NSMutableString)

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)