Re: NSURLConnection problem on Mac OS X 10.7
Re: NSURLConnection problem on Mac OS X 10.7
- Subject: Re: NSURLConnection problem on Mac OS X 10.7
- From: Mike Abdullah <email@hidden>
- Date: Thu, 08 Sep 2011 15:12:49 +0100
On 8 Sep 2011, at 14:30, Payal Mundhada wrote:
> Hi,
> I am calling this function in a thread using NSThread method from Main thread (Handling UI)
>
> [NSThread detachNewThreadSelector:@selector(startDownload) toTarget:self withObject:nil];
>
> -(void)startDownload
> {[myWebService makeRequest];}
>
> since we are downloading large data from server so NSURLConnection delegate mentioned below is getting called continuously and meanwhile also need to update UI, so calling the web service function itself in a saperate thread.
A Mac is plenty capable of running large downloads on the main thread asynchronously. What made you decide you shouldn't?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden