Instance Method

windowTitleForDocumentDisplayName:

Returns the window title to be used for a given document display name.

Declaration

- (NSString *)windowTitleForDocumentDisplayName:(NSString *)displayName;

Parameters

displayName

The display name for the document. This is the last path component under which the document file is saved.

Discussion

The default implementation returns displayName. Subclasses can override this method to customize the window title. For example, a CAD application could append “-Top” or “-Side,” depending on the view displayed by the window.

See Also

Accessing Window Attributes and Content

shouldCascadeWindows

A Boolean value that indicates whether the window will cascade in relation to other document windows when it is displayed.

windowFrameAutosaveName

The name under which the frame rectangle of the window owned by the receiver is stored in the defaults database.

- synchronizeWindowTitleWithDocumentName

Synchronizes the displayed window title and the represented filename with the information in the associated document.

contentViewController

The view controller for the window’s content view.

- dismissController:

Dismisses the window controller.