Type Method

bundleWithPath:

Returns an NSBundle object that corresponds to the specified directory.

Declaration

+ (instancetype)bundleWithPath:(NSString *)path;

Parameters

fullPath

The path to a directory. This must be a full pathname for a directory; if it contains any symbolic links, they must be resolvable.

Return Value

The NSBundle object that corresponds to fullPath, or nil if fullPath does not identify an accessible bundle directory.

Discussion

This method allocates and initializes the returned object if there is no existing NSBundle associated with fullPath, in which case it returns the existing object.

See Also

Creating and Initializing a Bundle

+ bundleWithURL:

Returns an NSBundle object that corresponds to the specified file URL.

+ bundleForClass:

Returns the NSBundle object with which the specified class is associated.

+ bundleWithIdentifier:

Returns the NSBundle instance that has the specified bundle identifier.

- initWithURL:

Returns an NSBundle object initialized to correspond to the specified file URL.

- initWithPath:

Returns an NSBundle object initialized to correspond to the specified directory.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software