• 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: Inherited Protocols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inherited Protocols


  • Subject: Re: Inherited Protocols
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 06 Mar 2014 15:34:10 +0000

On 6 Mar 2014, at 15:30, William Squires <email@hidden> wrote:

> Can an ObjC protocol be inherited by another protocol? I know the syntax for regular (class) inheritance, and for specifying that a class implements a protocol, but what's the syntax (if there is one) for one protocol inheriting from another?

Much the same as declaring the same for a class. e.g. this is quite common:

@protocol MyProtocol <NSObject>
…
@end

This means any object adopting MyProtocol must implement all of the NSObject protocol’s methods too.
_______________________________________________

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: Inherited Protocols
      • From: "email@hidden" <email@hidden>
    • Re: Inherited Protocols
      • From: Uli Kusterer <email@hidden>
References: 
 >Inherited Protocols (From: William Squires <email@hidden>)

  • Prev by Date: Inherited Protocols
  • Next by Date: Re: Inherited Protocols
  • Previous by thread: Inherited Protocols
  • Next by thread: Re: Inherited Protocols
  • Index(es):
    • Date
    • Thread