changeWindowsItem(_:title:filename:)
Changes the item for a given window in the Window menu to a given string.
Declaration
func changeWindowsItem(_ win: NSWindow, title string: String, filename isFilename: Bool)Parameters
- win:
The window whose title you want to change in the Window menu. If
aWindowis not in the Window menu, this method adds it. - string:
The string to display for the window’s menu item. How the string is interpreted is dependent on the value in the
isFilenameparameter. - isFilename:
If False,
aStringappears literally in the menu; otherwise,aStringis assumed to be a converted pathname with the name of the file preceding the path (the way theNSWindowmethod Settitlewithrepresentedfilename(_:) shows a title)