ADMBundle Class Reference
| Inherits from | NSProxy |
| Declared in | ADMBundle.h |
Overview
The ADMBundle class is a proxy class that treats content directories as NSBundles.
An NSBundle object represents a location in the file system that groups code and resources that can be used in a program. Many of the methods you use to load resources from a bundle automatically locate the appropriate starting directory and look for resources in known places.
Tasks
Properties
Initializing a ADMBundle
-
+ bundleWithDescriptor:error:Returns a ADMBundle object initialized to correspond to the specified bundle path.
-
+ bundleWithRepoId:bundleId:error:Returns a ADMBundle object initialized to correspond to the specified bundle path.
-
– initWithDescriptor:error:Returns a ADMBundle object initialized to correspond to the specified bundle path.
-
– initWithRepoId:bundleId:error:Returns a ADMBundle object initialized to correspond to the specified bundle path.
Getting a NSBundle
-
– NSBundleReturns the NSBundle object that corresponds to the directory where the asset content is located.
Properties
Class Methods
bundleWithDescriptor:error:
Returns a ADMBundle object initialized to correspond to the specified bundle path.
+ (id)bundleWithDescriptor:(NSString *)descriptor error:(NSError *__autoreleasing *)errorParameters
- descriptor
The combined ids of the repository id and bundle id in the form of
repo.bundle.
- error
The error object returned in case of failure.
Return Value
The NSBundle object that corresponds to bundle path, or nil if the bundle does not identify an accessible bundle directory.
Discussion
Returns a ADMBundle object initialized to correspond to the specified bundle path.
@discussion This method returns an autoreleased object, or nil if the bundle does not identify an accessible bundle directory.
Declared In
ADMBundle.hbundleWithRepoId:bundleId:error:
Returns a ADMBundle object initialized to correspond to the specified bundle path.
+ (id)bundleWithRepoId:(NSString *)repositoryId bundleId:(NSString *)bundleId error:(NSError *__autoreleasing *)errorParameters
- repositoryId
The name of the repository that points to the bundle directory’s parent directory.
- bundleId
The name of the bundle that corresponds to the latest version of the bundle directory.
- error
The error object returned in case of failure.
Return Value
The NSBundle object that corresponds to bundle path, or nil if the bundle does not identify an accessible bundle directory.
Discussion
Returns a ADMBundle object initialized to correspond to the specified bundle path.
@discussion This method returns an autoreleased object, or nil if the bundle does not identify an accessible bundle directory.
Declared In
ADMBundle.hInstance Methods
NSBundle
Returns the NSBundle object that corresponds to the directory where the asset content is located.
- (NSBundle *)NSBundleReturn Value
The NSBundle object that corresponds to the directory where the asset content is located, or nil if a bundle object could not be created.
Discussion
Returns the NSBundle object that corresponds to the directory where the asset content is located.
Declared In
ADMBundle.hinitWithDescriptor:error:
Returns a ADMBundle object initialized to correspond to the specified bundle path.
- (id)initWithDescriptor:(NSString *)descriptor error:(NSError *__autoreleasing *)errorParameters
- descriptor
The combined ids of the repository id and bundle id in the form of
repo.bundle.
- error
The error object returned in case of failure.
Return Value
The NSBundle object that corresponds to bundle path, or nil if the bundle does not identify an accessible bundle directory.
Discussion
Returns a ADMBundle object initialized to correspond to the specified bundle path.
@discussion This method allocates and initializes the returned object, or nil if the bundle does not identify an accessible bundle directory.
Declared In
ADMBundle.hinitWithRepoId:bundleId:error:
Returns a ADMBundle object initialized to correspond to the specified bundle path.
- (id)initWithRepoId:(NSString *)repositoryId bundleId:(NSString *)bundleId error:(NSError *__autoreleasing *)errorParameters
- repositoryId
The name of the repository that points to the bundle directory’s parent directory.
- bundleId
The name of the bundle that corresponds to the latest version of the bundle directory.
- error
The error object returned in case of failure.
Return Value
The NSBundle object that corresponds to bundle path, or nil if the bundle does not identify an accessible bundle directory.
Discussion
Returns a ADMBundle object initialized to correspond to the specified bundle path.
@discussion This method allocates and initializes the returned object, or nil if the bundle does not identify an accessible bundle directory.
Declared In
ADMBundle.h