copy(_:)
This action method copies the selected text onto the general pasteboard, in as many formats as the receiver supports.
Declaration
func copy(_ sender: Any?)Discussion
A plain text object uses NSStringPboardType for plain text, and a rich text object also uses NSRTFPboardType.