• 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: question about informal protocols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about informal protocols


  • Subject: Re: question about informal protocols
  • From: Michael de Haan <email@hidden>
  • Date: Fri, 20 Nov 2009 12:09:39 -0800

>
>
> The usual way is to NOT implements the NSObject category and test if the delegate implements the method using -respondsToSelector:
> But this way works too if you don't want to have to test before sending your message.
>
> Anyway, informal protocols are "deprecated" in favor of @protocol with @optional method.
>
>
> -- Jean-Daniel
>
>
>
>


Did not see that it was deprecated, but will take your lead and convert them to that. Does the, in your opinion, "optional" addition pretty much replace categories as a whole, or is there still a role for them?


_______________________________________________

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

  • Follow-Ups:
    • Re: question about informal protocols
      • From: Jens Alfke <email@hidden>
    • Re: question about informal protocols
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: question about informal protocols
      • From: David Duncan <email@hidden>
References: 
 >question about informal protocols (From: Michael de Haan <email@hidden>)
 >Re: question about informal protocols (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: CoreData/NSPersistentDocument initialization
  • Next by Date: Re: question about informal protocols
  • Previous by thread: Re: question about informal protocols
  • Next by thread: Re: question about informal protocols
  • Index(es):
    • Date
    • Thread