GTMOAuth2WindowController in a modal session
GoogleCodeExporter opened this issue · 1 comments
GoogleCodeExporter commented
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
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