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

# pasteboardPropertyList(forType:)

Returns a property list object to represent the receiver on a pasteboard as an object of a specified type.

```
func pasteboardPropertyList(forType type: NSPasteboard.PasteboardType) -> Any?
```

## Parameters

`type`

One of the types the receiver supports for writing (one of the UTIs returned by its implementation of [`writableTypes(for:)`](/documentation/AppKit/NSPasteboardWriting/writableTypes(for:))).

## Return Value

A property list object to represent the receiver on a pasteboard as an object of type `type`.

## Discussion

The returned value will commonly be the `NSData` object for the specified data type. However, if this method returns either a string, or any other property-list type, the pasteboard will automatically convert these items to the correct data format required for the pasteboard.

---

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)