Returns a window controller initialized with a nib file at an absolute path and a specified owner.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
- (instancetype)initWithWindowNibPath:(NSString *)windowNibPath owner:(id)owner;
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 should
property to NO
, and sets the autosave name for the window’s frame to an empty string.