Re: How to adopt a superclass's protocol?
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