Instance Method

loadNibFile:externalNameTable:withZone:

Unarchives the contents of a nib file located in the receiver's bundle.

Declaration

- (BOOL)loadNibFile:(NSString *)fileName externalNameTable:(NSDictionary *)context withZone:(NSZone *)zone;

Parameters

fileName

The name of the nib file, which need not include the .nib extension.

context

A name table whose keys identify objects associated with your program or the nib file. The newly unarchived objects from the nib file use this table to connect to objects in your program. For example, the nib file uses the object associated with the NSNibOwner constant as the nib file's owning object. If you associate an empty NSMutableArray object with the NSNibTopLevelObjects constant, on output, the array contains the top level objects from the nib file. For descriptions of these constants, see NSNib.

zone

The memory zone in which to allocate the nib file objects.

Return Value

YES if the nib file was loaded successfully; otherwise, NO.

Discussion

This method searches the language-specific project (.lproj) directories for the specified nib file. If the file is not there, it searches the bundle's Resources directory for a non-localized version of the file.

See Also

Loading Nib Files

- loadNibNamed:owner:options:

Unarchives the contents of a nib file located in the receiver's bundle.

- loadNibNamed:owner:topLevelObjects:

Loads a nib from the bundle with the specified file name and owner.

+ loadNibNamed:owner:

Unarchives the contents of the nib file and links them to a specific owner object.

Deprecated
+ loadNibFile:externalNameTable:withZone:

Unarchives the contents of the nib file and links them to objects in your program.

Deprecated