Instance Method

writingOptionsForType:pasteboard:

Returns options for writing data of a specified type to a given pasteboard.

Declaration

- (NSPasteboardWritingOptions)writingOptionsForType:(NSPasteboardType)type pasteboard:(NSPasteboard *)pasteboard;

Parameters

type

One of the types the receiver supports for writing (one of the UTIs returned by its implementation of writableTypesForPasteboard:).

pasteboard

A pasteboard.

You can use this argument to provide different options based on the pasteboard name, if you need to.

Return Value

Options for writing data of type type to pasteboard. Return 0 for no options, or a value given in Pasteboard Writing Options.

Discussion

Do not perform other pasteboard operations in the method implementation.

See Also

Required Methods

- writableTypesForPasteboard:

Returns an array of UTI strings of data types the receiver can write to a given pasteboard.

Required.

NSPasteboardWritingOptions

Type to specify options for writing to a pasteboard.