<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPasteboardReading/init(pasteboardPropertyList:ofType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSPasteboardReading(im)initWithPasteboardPropertyList:ofType:"
  },
  "title" : "init(pasteboardPropertyList:ofType:)"
}
-->

# init(pasteboardPropertyList:ofType:)

Initializes an instance with a property list object and a type string.

```
init?(pasteboardPropertyList propertyList: Any, ofType type: NSPasteboard.PasteboardType)
```

## Parameters

`propertyList`

A property list containing data to initialize the receiver.

    By default, the property list object is an instance of     `NSData`    . If you implement [`readingOptions(forType:pasteboard:)`](/documentation/AppKit/NSPasteboardReading/readingOptions(forType:pasteboard:))     and specify an option other than [`asData`](/documentation/AppKit/NSPasteboard/ReadingOptions/asData)    , the     `propertyList`     may be any other property list object.

`type`

A UTI supported by the receiver for reading (one of the types returned by [`readableTypes(for:)`](/documentation/AppKit/NSPasteboardReading/readableTypes(for:))).

## Return Value

An object initialized using the data in `propertyList`.

## Discussion

This method is considered optional because, if [`readableTypes(for:)`](/documentation/AppKit/NSPasteboardReading/readableTypes(for:)) returns just a single type, and that type uses the [`asKeyedArchive`](/documentation/AppKit/NSPasteboard/ReadingOptions/asKeyedArchive) reading option, then instances are initialized using <doc://com.apple.documentation/documentation/Foundation/NSCoding/init(coder:)> instead of this method.

## See Also

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

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

[`class 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)