hoang8f / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

GTMOAuth2WindowController in a modal session #154

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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