Inherits from ASObject : NSObject
Declared in ASContext.h

Overview

The context contains all musical classification entities available. It is much easier and faster to issue a single loadWithSuccess:failure call then it is to separately load each entity collection separately.

Tasks

Class Methods

loadWithSuccess:failure:

Initiates a request to retrieve the context.

+ (void)loadWithSuccess:(void ( ^ ) ( ASContext *))success failure:(void ( ^ ) ( NSError *))failure

Parameters

success

If supplied called with the newly retrieved context instance

failure

If supplied called when an error occurs issuing the request.

Declared In

ASContext.h

Instance Methods

resolveIDs:forClass:

Resolves object ids to actual ASObject instances. This context must have been loaded first.

- (NSArray *)resolveIDs:(NSArray *)ids forClass:(Class)klass

Parameters

ids

Array of ids to resolve

klass

Expected ASObject subclass to resolve ids to.

Return Value

Resolved objects. NULL if this context has not been loaded.

@exceptions If a class passed in that this context doesn’t understand.

Declared In

ASContext.h