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

# init(windowNibName:owner:)

Returns a window controller initialized with a nib file and a specified owner for that nib file.

## Declaration

```swift
convenience init(windowNibName: NSNib.Name, owner: Any)
```

## Parameters

- `windowNibName`: The name of the nib file (minus the “.nib” extension) that archives the receiver’s window; cannot be nil.
- `owner`: The nib file’s owner; cannot be nil.

## Discussion

Discussion 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(windowNibPath:owner:)](appkit/nswindowcontroller/init(windownibpath:owner:).md)
