Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

GTMOAuth2WindowController in a modal session #154

Closed
GoogleCodeExporter opened this issue Apr 21, 2015 · 1 comment
Closed

GTMOAuth2WindowController in a modal session #154

GoogleCodeExporter opened this issue Apr 21, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

I usually start a login sheet from a modal dialog and with the current 
implementation this causes problem during the step of receiving tokens.

To solve I need this:

    fetcher = [GTMHTTPFetcher fetcherWithRequest:request];
+     [fetcher setRunLoopModes: [NSArray arrayWithObjects:NSDefaultRunLoopMode, 
NSModalPanelRunLoopMode, nil]];

in +[GTMOAuth2SignIn userInfoFetcherWithAuth:] and -[GTMOAuth2Authentication 
beginTokenFetchWithDelegate:didFinishSelector:]

or at least provide a method to set the desired runLoopModes, as in 
GTMHTTPFetcherService

Thanks.
Mirko

Original issue reported on code.google.com by mirko.vi...@gmail.com on 17 Sep 2012 at 12:11

@GoogleCodeExporter
Copy link
Author

You can set the auth object's fetcherService property and assign run loop modes 
to the fetcher service, and the gtm-oauth2 methods will get the fetcher from 
that fetcher service.

Original comment by grobb...@google.com on 17 Sep 2012 at 11:17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants