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

  •   repo

    The repository of content bundles

    property
  •   bundleId

    The name of the content bundle

    property

Initializing a ADMBundle

Getting a NSBundle

  • – NSBundle

    Returns the NSBundle object that corresponds to the directory where the asset content is located.

Properties

bundleId

The name of the content bundle

@property (nonatomic, strong, readonly) NSString *bundleId

Discussion

The name of the content bundle

Declared In

ADMBundle.h

repo

The repository of content bundles

@property (nonatomic, strong, readonly) ADMRepo *repo

Discussion

The repository of content bundles

Declared In

ADMBundle.h

Class Methods

bundleWithDescriptor:error:

Returns a ADMBundle object initialized to correspond to the specified bundle path.

+ (id)bundleWithDescriptor:(NSString *)descriptor error:(NSError *__autoreleasing *)error

Parameters

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.h

bundleWithRepoId:bundleId:error:

Returns a ADMBundle object initialized to correspond to the specified bundle path.

+ (id)bundleWithRepoId:(NSString *)repositoryId bundleId:(NSString *)bundleId error:(NSError *__autoreleasing *)error

Parameters

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.h

Instance Methods

NSBundle

Returns the NSBundle object that corresponds to the directory where the asset content is located.

- (NSBundle *)NSBundle

Return 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.h

initWithDescriptor:error:

Returns a ADMBundle object initialized to correspond to the specified bundle path.

- (id)initWithDescriptor:(NSString *)descriptor error:(NSError *__autoreleasing *)error

Parameters

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.h

initWithRepoId:bundleId:error:

Returns a ADMBundle object initialized to correspond to the specified bundle path.

- (id)initWithRepoId:(NSString *)repositoryId bundleId:(NSString *)bundleId error:(NSError *__autoreleasing *)error

Parameters

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