duplicate(_:)
Creates a copy of the receiving document in response to the user choosing Duplicate from the File menu.
Declaration
@IBAction func duplicate(_ sender: Any?)Parameters
- sender:
The control sending the action message.
Discussion
The default implementation of this method merely invokes [self duplicateDocumentWithDelegate:nil didDuplicateSelector:NULL contextInfo:NULL].