Loads a nib from the bundle with the specified file name and owner.
- macOS 10.8+
The name of the nib.
The object that will be the nib’s owner.
This by-reference parameter is populated with the top level objects of the nib.
YES if the nib file was loaded successfully; otherwise,
Unlike legacy methods, the objects adhere to the standard cocoa memory management rules; it is necessary to keep a strong reference to them by using IBOutlets or holding a reference to the array to prevent the nib contents from being deallocated.
Outlets to top-level objects should be strong references to demonstrate ownership and prevent deallocation.
For more information on Nibs, see