• 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: delegate method both "required" and "deprecated"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >delegate method both "required" and "deprecated"? (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]
  • Next by Date: Re: Could somebody please fix NSTimer?
  • Previous by thread: delegate method both "required" and "deprecated"?
  • Next by thread: How to get registered dragged types from NSWindow?
  • Index(es):
    • Date
    • Thread