<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/title",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(py)title"
  },
  "title" : "title"
}
-->

# title

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

```
var title: String { get set }
```

## Discussion

If the title has been set using [`setTitleWithRepresentedFilename(_:)`](/documentation/AppKit/NSWindow/setTitleWithRepresentedFilename(_:)), this property contains the file’s path. Setting this property also sets the title of the window’s miniaturized window.

## See Also

[`miniwindowTitle`](/documentation/AppKit/NSWindow/miniwindowTitle)

The title displayed in the window’s minimized window.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)