Ben Copsey

Added sharedNetworkQueue, a singleton-like queue that will save you having to manage queues yourself

... ... @@ -83,6 +83,9 @@
// This method will start the queue
- (void)go;
// A globally available network queue, created the first time it is requested
+ (ASINetworkQueue *)sharedNetworkQueue;
@property (assign,setter=setUploadProgressDelegate:) id uploadProgressDelegate;
@property (assign,setter=setDownloadProgressDelegate:) id downloadProgressDelegate;
... ...
... ... @@ -9,6 +9,7 @@
#import "ASINetworkQueue.h"
#import "ASIHTTPRequest.h"
static ASINetworkQueue *sharedNetworkQueue = nil;
@implementation ASINetworkQueue
... ... @@ -288,6 +289,14 @@
}
+ (ASINetworkQueue *)sharedNetworkQueue
{
if (!sharedNetworkQueue) {
sharedNetworkQueue = [[ASINetworkQueue alloc] init];
}
return sharedNetworkQueue;
}
@synthesize uploadProgressDelegate;
@synthesize downloadProgressDelegate;
... ...