copy(_:)
Action method that copies the selected content to the general pasteboard.
Declaration
func copy(_ sender: Any?)Parameters
- sender:
The object that sent this message.
Discussion
This action method copies the selected content onto the general pasteboard, in as many formats as the receiver supports. For example, a plain text object uses NSStringPboardType for plain text, and a rich text object also uses NSRTFPboardType.