• 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 in an action?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSURLDownload in an action? (From: Robert Nicholson <email@hidden>)
 >Re: NSURLDownload in an action? (From: Scott Anguish <email@hidden>)

  • Prev by Date: RE: Math operations for NSNumber
  • Next by Date: Re: "selected" table view column header
  • Previous by thread: Re: NSURLDownload in an action?
  • Next by thread: How to display Tool Tips for a Radio Buttons ?
  • Index(es):
    • Date
    • Thread