Re: delegate method both "required" and "deprecated"?
Re: delegate method both "required" and "deprecated"?
- Subject: Re: delegate method both "required" and "deprecated"?
- From: Quincey Morris <email@hidden>
- Date: Sun, 13 Jan 2013 12:44:07 -0800
On Jan 13, 2013, at 12:07 , Todd Heberlein <email@hidden> 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@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