Instance Method

moveDocument:

Moves the document to a new location in response to the user choosing the Move To… menu item.

Declaration

- (IBAction)moveDocument:(id)sender;

Parameters

sender

The control sending the message.

Discussion

This is the action method of the Move To… menu item in a document-based app. By default, this method invokes the moveDocumentWithCompletionHandler: method, passing nil as a parameter value.

See Also

Moving Documents

- moveDocumentWithCompletionHandler:

Moves the document to a user-selected location.

- moveToURL:completionHandler:

Moves the document’s file to the given URL.