- Inherits From:
- LoadBroker
- Declared In:
- URLManager.h
BE SURE to invoke detachConsumer on this object before deallocating this in your class's release method.
Synopsis:
NSString *URLManagerCreateNotification;
NSString *URLManagerChangeNotification;
NSString *URLManagerDeleteNotification;
NSString *URLManagerFinishNotification;
int mLoadingCounter;
NSMutableDictionary *mLoaderStorage;
NSMutableDictionary *mParamStorage;
NSProgressIndicator *mProgress;
mLoadingCounter No description. mLoaderStorage No description. mParamStorage No description. mProgress No description.
Initialization and LoadingStatus and control
- - initWithDescriptor:consumer:progress:success:cancelled:error:
- - initWithDescriptor:consumer:progress:
- - loadURL:options:parameter:
- - stopLoading
- - stopLoadingParameter:
- - loadersRemaining
- - isDone
- - status
- - loaderDictionary
- (id)initWithDescriptor:(NSString *)inDescriptor consumer:(id)inConsumer progress:(NSProgressIndicator *)inProgress
Initialize the URLManager, with default methods
- (id)initWithDescriptor:(NSString *)inDescriptor consumer:(id)inConsumer progress:(NSProgressIndicator *)inProgress success:(SEL)inSuccess cancelled:(SEL)inCancelled error:(SEL)inError
Initialize the URLManager. It initializes as in [LoadBroker initWithDescriptor:consumer:success:cancelled:error:] and then sets up the storage for dealing with managing concurrent loads. You can also make use of initWithDescriptor:consumer:progress: to use the default methods.
- (BOOL)isDone
Returns true if done loading; that is, no loaders remain.
- (void)loadURL:(NSURL *)inURL options:(NSDictionary *)inOptions parameter:(id)inParam
Begin loading inURL in the background. inOptions are passed to the URLLoader. inParam is any object that is passed back to the consumer when the load finishes so the consumer can recognize what finished loading; it might be a string, a dictionary, for example.
- (NSDictionary *)loaderDictionary
Return the loader dictionary; for debugging purposes.
- (int)loadersRemaining
Return the number of concurrent loads remaining to be completed.
- (NSString *)status
Returns a status string; useful for debugging or displaying to the user to show how many items remain to be completed.
- (void)stopLoading
Stop loading all pending URLs. This might be done in response to a "Cancel All" button or some such.
- (void)stopLoadingParameter:(id)inParam
Stop loading url with given parameter