• 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: NSURLConnection and 404
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection and 404


  • Subject: Re: NSURLConnection and 404
  • From: Koen van der Drift <email@hidden>
  • Date: Sun, 09 Jun 2013 11:25:56 -0400

On Jun 9, 2013, at 5:54 AM, Jean-Daniel Dupas <email@hidden> wrote:

> The NSConnectionDelegate protocol has a method that pass you the response:
>
> - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
>
> You can test if the response is of type NSHTTPURLResponse (which should always be the case when you send an HTTP request), and then use the -[NSHTTPURLResponse statusCode] method to get the status.


A much better solution than what I proposed!

- Koen.
_______________________________________________

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

References: 
 >NSURLConnection and 404 (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: NSURLConnection and 404 (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: UICollectionView with NSFetchedResultsController; compatible?
  • Next by Date: error in using NSNumber's numberWithInt: method not flagged
  • Previous by thread: Re: NSURLConnection and 404
  • Next by thread: UICollectionView with NSFetchedResultsController; compatible?
  • Index(es):
    • Date
    • Thread