---
title: title
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/title
---

# title

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

## Declaration

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

## Discussion

Discussion If the title has been set using setTitleWithRepresentedFilename(_:), this property contains the file’s path. Setting this property also sets the title of the window’s miniaturized window.

## See Also

### Related Documentation

- [miniwindowTitle](appkit/nswindow/miniwindowtitle.md)

### Managing Titles

- [subtitle](appkit/nswindow/subtitle.md)
- [titleVisibility](appkit/nswindow/titlevisibility-swift.property.md)
- [setTitleWithRepresentedFilename(_:)](appkit/nswindow/settitlewithrepresentedfilename(_:).md)
- [representedFilename](appkit/nswindow/representedfilename.md)
- [representedURL](appkit/nswindow/representedurl.md)
