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?

i.e.

I have a protocol, INotSoStiffProtocol that has one method declaration:

-(void)YouMustImplementMe;

If I now have another protocol, IStifferProtocol that inherits from 
INotSoStillProtocol, it should require that any class implementing it also 
implement:

-(void)YouMustImplementMeToo:(NSString *)aGoofyMessage;

I can certainly just create a "IStifferProtocol.h" file and hand-code it (of 
course), but I'm wondering if there's an easier way.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to