init(windowNibPath:owner:)
Returns a window controller initialized with a nib file at an absolute path and a specified owner.
Declaration
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 property to false, and sets the autosave name for the window’s frame to an empty string.