2
0

Update Google+ integration.

[UPDATED]   Google+ SDK to 1.1.0.
This commit is contained in:
Maarten Billemont
2013-01-31 16:22:37 -05:00
parent cc015ada1b
commit 6c23134e47
74 changed files with 3383 additions and 2012 deletions

View File

@@ -1159,20 +1159,29 @@ totalBytesExpectedToSend:(NSInteger)totalBytesExpected {
SEL parseDoneSel = @selector(handleParsedObjectForFetcher:);
NSArray *runLoopModes = [properties valueForKey:kFetcherCallbackRunLoopModesKey];
if (runLoopModes) {
// If this callback was enqueued, then the fetcher has already released
// its delegateQueue. We'll use our own delegateQueue to determine how to
// invoke the callbacks.
NSOperationQueue *delegateQueue = self.delegateQueue;
if (delegateQueue) {
NSInvocationOperation *op;
op = [[[NSInvocationOperation alloc] initWithTarget:self
selector:parseDoneSel
object:fetcher] autorelease];
[delegateQueue addOperation:op];
} else if (runLoopModes) {
[self performSelector:parseDoneSel
onThread:callbackThread
withObject:fetcher
waitUntilDone:NO
modes:runLoopModes];
} else {
// defaults to common modes
// Defaults to common modes
[self performSelector:parseDoneSel
onThread:callbackThread
withObject:fetcher
waitUntilDone:NO];
}
// the fetcher now belongs to the callback thread
}
@@ -2031,6 +2040,14 @@ totalBytesExpectedToSend:(NSInteger)totalBytesExpected {
return self.fetcherService.shouldFetchInBackground;
}
- (void)setDelegateQueue:(NSOperationQueue *)delegateQueue {
self.fetcherService.delegateQueue = delegateQueue;
}
- (NSOperationQueue *)delegateQueue {
return self.fetcherService.delegateQueue;
}
- (void)setRunLoopModes:(NSArray *)array {
self.fetcherService.runLoopModes = array;
}