Instance Method

duplicateDocument:

Creates a copy of the receiving document in response to the user choosing Duplicate from the File menu.

Declaration

- (IBAction)duplicateDocument:(id)sender;

Parameters

sender

The control sending the action message.

Discussion

The default implementation of this method merely invokes [self duplicateDocumentWithDelegate:nil didDuplicateSelector:NULL contextInfo:NULL].

See Also

Duplicating Documents

- duplicateAndReturnError:

Creates a new document whose contents are the same as the receiver and returns an error object if unsuccessful.

- duplicateDocumentWithDelegate:didDuplicateSelector:contextInfo:

Create a new document whose contents are the same as the receiver’s and notify the delegate.