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

# title

The localized title of the receiver’s primary view.

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

## Discussion

You can employ the [`title`](/documentation/AppKit/NSViewController/title) property as needed for your app’s user interface, such as to enable a user to choose among multiple named views in a menu or other affordance. The [`NSViewController`](/documentation/AppKit/NSViewController) class does not use this property for its own purposes.

The [`title`](/documentation/AppKit/NSViewController/title) property is key-value coding and key-value observing compliant.

---

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)