• 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: How to adopt a superclass's protocol?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to adopt a superclass's protocol?


  • Subject: Re: How to adopt a superclass's protocol?
  • From: Graham Cox <email@hidden>
  • Date: Wed, 30 Apr 2008 08:52:26 +1000

This is what I'd expect.

A protocol isn't much different from a class; if you want to subclass a class, you need to import its header. Same here.

The concept of a "private protocol" is a bit of a contradiction in terms - protocols exist to allow more than one class to comply with a common interface, so trying to force the protocol into hiding is not something the language is designed to accommodate.

So I think the short answer is "no".


G.


On 30 Apr 2008, at 6:40 am, K. Darcy Otto wrote:
Also, what is interesting is that if I move @protocol Check ... @end in Superclass.m to Superclass.h, the warning goes away. So, is there a way to keep @protocol Check ... @end in Superclass.m and eliminate the warning?

_______________________________________________

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: 
 >How to adopt a superclass's protocol? (From: "K. Darcy Otto" <email@hidden>)
 >Re: How to adopt a superclass's protocol? (From: Michael Vannorsdel <email@hidden>)
 >Re: How to adopt a superclass's protocol? (From: "K. Darcy Otto" <email@hidden>)
 >Re: How to adopt a superclass's protocol? (From: Michael Vannorsdel <email@hidden>)
 >Re: How to adopt a superclass's protocol? (From: "K. Darcy Otto" <email@hidden>)

  • Prev by Date: Re: How to adopt a superclass's protocol?
  • Next by Date: Re: Any actor or coroutine implementations for Cocoa?
  • Previous by thread: Re: How to adopt a superclass's protocol?
  • Next by thread: Re: How to adopt a superclass's protocol?
  • Index(es):
    • Date
    • Thread