- Inherits From:
- LoadBroker
- Declared In:
- ImageViewManager.h
BE SURE to invoke detachConsumer on this object before deallocating this in your class's release method.
Synopsis:
NSString *ImageViewManagerLoadSuccessNotification;
NSString *ImageViewManagerLoadErrorNotification;
URLManager *mURLManager;
mURLManager No description.
InitializationBackground Loading
- - initWithDescriptor:progress:
- - initWithDescriptor:
Status and control
- - loadURL:options:imageView:
- - stopLoading
- - stopLoadingImageView:
- - loadersRemaining
- - status
- - isDone
- (id)initWithDescriptor:(NSString *)inDescriptor
Initialize the ImageViewManager as above but with no progress view
- (id)initWithDescriptor:(NSString *)inDescriptor progress:(NSProgressIndicator *)inProgress
Initialize the ImageViewManager. It initializes as in [LoadBroker initWithDescriptor:consumer:success:cancelled:error:] and then sets up a URLManager to actually do the loading.
- (BOOL)isDone
Returns true if done loading; that is, no loaders remain.
- (void)loadURL:(NSString *)inURL options:(NSDictionary *)inOptions imageView:(NSImageView *)inImageView
Begin loading a page in the background. inParsingDict describes what to load and how to interpret it. inUserInputs is a dictionary of "dynamic" inputs to be added to the request. 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.
- (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)stopLoadingImageView:(NSImageView *)inImageView
Stop loading url for given image view