Deprecated NSBundle AppKit Additions Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.8

loadNibFile:externalNameTable:withZone:

Unarchives the contents of the nib file and links them to objects in your program. (Deprecated in OS X v10.8.)

+ (BOOL)loadNibFile:(NSString *)fileName externalNameTable:(NSDictionary *)context withZone:(NSZone *)zone
Parameters
fileName

The location of the nib file specified as an absolute path in the file system.

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 Class Reference.

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 is declared in NSNibLoading.h.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.8.
Declared In
NSNibLoading.h

loadNibNamed:owner:

Unarchives the contents of the nib file and links them to a specific owner object. (Deprecated in OS X v10.8.)

+ (BOOL)loadNibNamed:(NSString *)aNibName owner:(id)owner
Parameters
aNibName

The name of the nib file, which need not include the .nib extension. The file name should not include path information. The object in the owner parameter determines the location in which to look for the nib file.

owner

The object to assign as the nib File's Owner. If the class of this object has an associated bundle, that bundle is searched for the specified nib file; otherwise, this method looks in the main bundle.

Return Value

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

Discussion

This method is declared in NSNibLoading.h.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.8.
See Also
Declared In
NSNibLoading.h

loadNibFile:externalNameTable:withZone:

Unarchives the contents of a nib file located in the receiver's bundle. (Deprecated in OS X v10.8.)

- (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 Class Reference.

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.

This method is declared in NSNibLoading.h.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.8.
Declared In
NSNibLoading.h