• 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 and server errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLDownload and server errors


  • Subject: Re: NSURLDownload and server errors
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 1 Mar 2005 11:21:17 -0500

can you not get the information you need by implementing

- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error


that'll give you the error...

or even better

- (void)download:(NSURLDownload *)download didReceiveResponse:(NSURLResponse *)response


you can sock that response away and check it upon failure


On Mar 1, 2005, at 2:32 AM, Paul Forgey wrote:

How do I get the server error, normally available from an NSHTTPURLResponse, from an NSDownload instance that fails with an error? The NSURLResponse is only sent to the delegate if the download is successful, and the NSError does not contain the information of this detail. Is there any way to obtain the NSURLResponse of a download that fails?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSURLDownload and server errors
      • From: Paul Forgey <email@hidden>
  • Prev by Date: Re: Memory management question (passing objects to method)
  • Next by Date: Re: different CDs, same name = trouble?
  • Previous by thread: [ANN]RBSplitView 1.0.2
  • Next by thread: Re: NSURLDownload and server errors
  • Index(es):
    • Date
    • Thread