Instance Method

writeObjects:

Writes an array of objects to the receiver.

Declaration

- (BOOL)writeObjects:(NSArray<id<NSPasteboardWriting>> *)objects;

Parameters

objects

An array of objects that implement the NSPasteboardWriting protocol (including instances of NSPasteboardItem).

Return Value

YES if the array was successfully added, otherwise NO.

See Also

Writing Data

- clearContents

Clears the existing contents of the pasteboard

- setData:forType:

Sets the given data as the representation for the specified type for the first item on the receiver.

- setPropertyList:forType:

Sets the given property list as the representation for the specified type for the first item on the receiver.

- setString:forType:

Sets the given string as the representation for the specified type for the first item on the receiver.