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

# windowNibName

The name of the nib file that stores the window associated with the receiver.

```
var windowNibName: NSNib.Name? { get }
```

## Discussion

If [`init(windowNibPath:owner:)`](/documentation/AppKit/NSWindowController/init(windowNibPath:owner:)) was used to initialize the instance, [`windowNibName`](/documentation/AppKit/NSWindowController/windowNibName) contains the last path component with the “`.nib`” extension stripped off. If [`init(windowNibName:)`](/documentation/AppKit/NSWindowController/init(windowNibName:)) or [`init(windowNibName:owner:)`](/documentation/AppKit/NSWindowController/init(windowNibName:owner:)) was used, [`NSWindowController`](/documentation/AppKit/NSWindowController) contains the name without the “`.nib`” extension.

---

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)