Contents

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 file.

Declaration

func setTitleWithRepresentedFilename(_ filename: String)

Parameters

  • filename:

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

Discussion

The windows’ title bar displays the filename, not the file’s path.

See Also

Related Documentation

Managing Titles