I did have a comment: shouldn't we update the cancelRequestForKey: function to use the local requestQueue object and not the sharedOperationQueue? Seems like we may be putting operations into one queue and canceling them from another.
Good morning,Can someone please take a look at this and get back to me ASAP? I've been delaying delivering an application based what appeared to be new functionality in 10.1.1 and not I'm stuck between a rock and a hard place.Thanks,Jon
NSOperation *nsOp = [featureLayer addFeatures:graphics]
@implementation AGSRequestOperation (Operation) + (NSOperationQueue *)sharedOperationQueue { return [Utils getQueue]; } @end
// Declaration in .h file property (nonatomic,strong) NSOperationQueue *operationQueue; @implementation Utils - (id)init { self = [super init]; if (self) { _operationQueue = [[NSOperationQueue alloc] init]; [_operationQueue setMaxConcurrentOperationCount:10]; } return self; } + (NSOperationQueue *)getQueue { return _operationQueue; } @end
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.