• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLConnection problem on Mac OS X 10.7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSURLConnection problem on Mac OS X 10.7
      • From: Jens Alfke <email@hidden>
References: 
 >Fwd: NSURLConnection problem on Mac OS X 10.7 (From: Payal Mundhada <email@hidden>)
 >Re: NSURLConnection problem on Mac OS X 10.7 (From: Mike Abdullah <email@hidden>)
 >Re: NSURLConnection problem on Mac OS X 10.7 (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Distributed Notification observing change in Lion?
  • Next by Date: Re: NSURLConnection problem on Mac OS X 10.7
  • Previous by thread: Re: NSURLConnection problem on Mac OS X 10.7
  • Next by thread: Re: NSURLConnection problem on Mac OS X 10.7
  • Index(es):
    • Date
    • Thread