Instance Method

renameDocument:

Renames the current document in response to the user choosing the Rename menu item.

Declaration

- (IBAction)renameDocument:(id)sender;

Parameters

sender

The control sending the message.

Discussion

This is the action method of the Rename menu item in a document-based app. The default implementation of this method initiates a renaming session in a window created by the [self windowForSheet] message.