---
title: "init(windowNibPath:owner:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nswindowcontroller/init(windownibpath:owner:)"
---

# init(windowNibPath:owner:)

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

## Declaration

```swift
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

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 property to false, and sets the autosave name for the window’s frame to an empty string.

## See Also

### Initializing Window Controllers

- [init(window:)](appkit/nswindowcontroller/init(window:).md)
- [init(windowNibName:)](appkit/nswindowcontroller/init(windownibname:).md)
- [init(windowNibName:owner:)](appkit/nswindowcontroller/init(windownibname:owner:).md)
