readingOptions(forType:pasteboard:)
Returns options for reading data of a specified type from a given pasteboard.
Declaration
optional static func readingOptions(forType type: NSPasteboard.PasteboardType, pasteboard: NSPasteboard) -> NSPasteboard.ReadingOptionsParameters
- type:
A UTI supported by instances of the receiver for reading (one of the types returned by Readabletypes(for:)).
- pasteboard:
A pasteboard.
You can use the pasteboard argument to provide return different based on the pasteboard name, should you need to do so.
Return Value
Options for reading data of type from pasteboard. For a list of valid values, see NSPasteboard.ReadingOptions.
Discussion
Do not perform other pasteboard operations in this method implementation.