• 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: Upload Progress from NSURLConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Upload Progress from NSURLConnection


  • Subject: Re: Upload Progress from NSURLConnection
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Mon, 31 Oct 2011 09:01:51 +0000

On 30 Oct 2011, at 15:43, Gordon Apple wrote:

> Looking the WWDC video for Twitter, there is an option for using a signed request from a TWRequest which they show getting upload progress from an NURLConnection using “connection:didSendBodyData:totalBytesWritten:TotalBytesExpectedToWrite” delegate.  However, this is marked in the docs as a deprecated method.

In iOS 5 (and Mac OS X 10.7) we introduced a major reshuffle of NSURLConnection delegate callbacks.  The old informal protocols were removed, replaced with new formal protocols.  This has caused a lot of confusion because our documentation systems aren't subtle enough to understand the transition.  However, in most cases the delegate /methods/ haven't changed, so as long as you keep using the correct method everything works fine.

> There seems to be a similar replacement for a downloaded delegate protocol, but nothing to replace this for uploads.  Have I missed it somewhere?

The -connection:didSendBodyData:xxx method is now in the the NSURLConnectionDataDelegate formal protocol, and that applies to both uploads and downloads.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Upload Progress from NSURLConnection
      • From: Gordon Apple <email@hidden>
References: 
 >Upload Progress from NSURLConnection (From: Gordon Apple <email@hidden>)

  • Prev by Date: Upload Progress from NSURLConnection
  • Next by Date: Re: Upload Progress from NSURLConnection
  • Previous by thread: Upload Progress from NSURLConnection
  • Next by thread: Re: Upload Progress from NSURLConnection
  • Index(es):
    • Date
    • Thread