Contents

setString(_:forType:)

Sets the value for a specified type as a string.

Declaration

func setString(_ string: String, forType type: NSPasteboard.PasteboardType) -> Bool

Parameters

  • string:

    A string for the representation specified by type.

  • type:

    A uniform type identifier string.

Return Value

true if the value was set successfully, otherwise false.

See Also

Setting values