---
title: "setPropertyList(_:forType:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspasteboarditem/setpropertylist(_:fortype:)"
---

# setPropertyList(_:forType:)

Sets the value for a specified type as a property list.

## Declaration

```swift
func setPropertyList(_ propertyList: Any, forType type: NSPasteboard.PasteboardType) -> Bool
```

## Parameters

- `propertyList`: A property list object containing the value for the representation specified by type.
- `type`: A uniform type identifier string.

## Return Value

Return Value true if the value was set successfully, otherwise false.

## See Also

### Setting values

- [setData(_:forType:)](appkit/nspasteboarditem/setdata(_:fortype:).md)
- [setString(_:forType:)](appkit/nspasteboarditem/setstring(_:fortype:).md)
