On Jan 13, 2013, at 12:07 , Todd Heberlein <[email protected]> wrote:

> I'm looking at the documentation for  NSURLConnectionDelegate (OS X 10.8) and 
> it lists
> 
>       – 
> connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:
> 
> as "required method" (available in 10.6 & 10.7)

It says it's both required and available in 10.6-10.7, but deprecated in 10.8 
*in this protocol*.

It has moved to NSURLDataConnectionDataDelegate in 10.8, a new subprotocol of 
NSURLConnectionDelegate.

> I am a little confused. Should I or should I not implement this method in my 
> delegate?

So, yes, you should implement it. But if you're compiling against the 10.8 SDK, 
you should change your delegate to conform to NSURLDataConnectionDataDelegate 
instead of NSURLConnectionDelegate. (This should work fine with the app running 
on 10.7 or 10.6, since the required method will actually be there.)



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to