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 protected]; [email protected]
> From: [email protected]
> To: [email protected]
> 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 protected]
> 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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]