In my iPhone app I need to connect to a web server as this can take some time I\'m using threads like this:
[NSThread detachNewThreadSelector:@selector(sendS
[self performSelectorOnMainThread:@selector(myMethod) withObject:nil waitUntilDone:NO];
will work