runModalForWindow throttles http requests

Posted by Nikita Rybak on Stack Overflow See other posts from Stack Overflow or by Nikita Rybak
Published on 2011-02-14T05:42:46Z Indexed on 2011/02/14 7:25 UTC
Read the original article Hit count: 243

I have url connection, which normally works fine

NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request
                                                              delegate:delegate];

But when I create a modal window, no request ever receives response:

[NSApp runModalForWindow:window];

If I comment this line out, thus creating a 'standard' window, everything works.

I tried implementing all methods from NSURLConnectionDelegate, not a single of them called.

I suspect this is something about 'run loops', but have little experience in this area. Does anybody have experience in this?

Thank you

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa