Synchronizes the displayed window title and the represented filename with the information in the associated document.
- macOS 10.0+
Does nothing if the window controller has no associated document or loaded window. This method queries the window controller’s document to get the document’s display name and full filename path, then calls
window to get the display name to show in the window title.