Deprecated NSBundle 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.)
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
NSNibOwnerconstant as the nib file's owning object. If you associate an emptyNSMutableArrayobject with theNSNibTopLevelObjectsconstant, 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.hloadNibNamed:owner:
Unarchives the contents of the nib file and links them to a specific owner object. (Deprecated in OS X v10.8.)
Parameters
- aNibName
The name of the nib file, which need not include the
.nibextension. 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
-
bundleForClass:(NSBundle)
Declared In
NSNibLoading.hloadNibFile:externalNameTable:withZone:
Unarchives the contents of a nib file located in the receiver's bundle. (Deprecated in OS X v10.8.)
Parameters
- fileName
The name of the nib file, which need not include the
.nibextension.- 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
NSNibOwnerconstant as the nib file's owning object. If you associate an emptyNSMutableArrayobject with theNSNibTopLevelObjectsconstant, 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© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-12-13)