<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindowController/init(windowNibPath:owner:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindowController(im)initWithWindowNibPath:owner:"
  },
  "title" : "init(windowNibPath:owner:)"
}
-->

# init(windowNibPath:owner:)

Returns a window controller initialized with a nib file at an absolute path and a specified owner.

```
convenience init(windowNibPath: String, owner: Any)
```

## Parameters

`windowNibPath`

The full path to the nib file that archives the receiver’s window; cannot be `nil`.

`owner`

The nib file’s owner; cannot be `nil`.

## Discussion

Use this method if your nib file is at a fixed location (which is not inside either the file’s owner’s class’s bundle or in the application’s main bundle). The default initialization turns on cascading, sets the [`shouldCloseDocument`](/documentation/AppKit/NSWindowController/shouldCloseDocument) property to <doc://com.apple.documentation/documentation/Swift/false>, and sets the autosave name for the window’s frame to an empty string.

---

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)