• 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: NSURLDownload delegate methods seperate thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSURLDownload delegate methods seperate thread


  • Subject: RE: NSURLDownload delegate methods seperate thread
  • From: Colin Deasy <email@hidden>
  • Date: Tue, 8 Sep 2009 20:43:49 +0000
  • Importance: Normal

Spot on, thanks man.
Fixed it using:[[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantFuture]];
	while ([self isDownloading] );

So just blocks until finished the download. If I take away the while loop it doesn't run.Is there a better way?
Colin
> CC: email@hidden; email@hidden
> From: email@hidden
> To: email@hidden
> Subject: Re: NSURLDownload delegate methods seperate thread
> Date: Tue, 8 Sep 2009 12:55:33 -0700
>
>
> On Sep 8, 2009, at 12:36 PM, Colin Deasy wrote:
>
> > Well I did try that but there were no callbacks. That is I initiated
> > the download in the start method of an NSOperation.
>
>
> You likely have no run loop running on the thread. You need that for
> NSURLConnection to do its work.
>
> --
> Dave Carrigan
> email@hidden
> Seattle, WA, USA
>

_________________________________________________________________
With Windows Live, you can organize, edit, and share your photos.
http://www.microsoft.com/ireland/windows/windowslive/products/photo-gallery-edit.aspx_______________________________________________

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: NSURLDownload delegate methods seperate thread
      • From: Dave Carrigan <email@hidden>
    • Re: NSURLDownload delegate methods seperate thread
      • From: Kyle Sluder <email@hidden>
References: 
 >NSImage with multiple representation sizes (From: Benjamin Rister <email@hidden>)
 >Re: NSImage with multiple representation sizes (From: Ken Ferry <email@hidden>)
 >Re: NSImage with multiple representation sizes (From: Benjamin Rister <email@hidden>)
 >NSURLDownload delegate methods seperate thread (From: Colin Deasy <email@hidden>)
 >Re: NSURLDownload delegate methods seperate thread (From: Randall Meadows <email@hidden>)
 >RE: NSURLDownload delegate methods seperate thread (From: Colin Deasy <email@hidden>)
 >Re: NSURLDownload delegate methods seperate thread (From: Dave Carrigan <email@hidden>)

  • Prev by Date: Re: NSImage with multiple representation sizes
  • Next by Date: Re: NSURLDownload delegate methods seperate thread
  • Previous by thread: Re: NSURLDownload delegate methods seperate thread
  • Next by thread: Re: NSURLDownload delegate methods seperate thread
  • Index(es):
    • Date
    • Thread