Re: NSURLDownload in an action?
Re: NSURLDownload in an action?
- Subject: Re: NSURLDownload in an action?
- From: Robert Nicholson <email@hidden>
- Date: Fri, 1 Jun 2007 09:32:07 +0700
Failing that approach what is the most elegant way to ensure that the
method doesn't return until all downloads are complete? Is event
polling like this the only way?
On Jun 1, 2007, at 2:51 AM, Scott Anguish wrote:
On May 31, 2007, at 6:34 AM, Robert Nicholson wrote:
Forgive the cross posting it's probably more relevant to general
cocoa than automator despite my attempts to use it in an automator
action. the key point being automator actions have to be
synchronous ie. all work is done before the top method returns.
Since you want an async download, why not use
NSURLConnection's +sendSynchronousRequest:returningResponse:error:
instead, and then right the data out to the appropriate file?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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