Instance Method

setTitleWithRepresentedFilename:

Sets a given path as the window’s title, formatting it as a file-system path, and records this path as the window’s associated filename using representedFilename.

Declaration

- (void)setTitleWithRepresentedFilename:(NSString *)filename;

Parameters

filename

The file path to set as the window’s title.

Discussion

The filename—not the pathname—is displayed in the window’s title bar.

See Also

Managing Titles

title

The string that appears in the title bar of the window or the path to the represented file.

titleVisibility

A value that indicates the visibility of the window’s title and title bar buttons.

representedFilename

The path to the file of the window’s represented file.

representedURL

The URL of the file the window represents.