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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to