Inherited Protocols
Inherited Protocols
- Subject: Inherited Protocols
- From: William Squires <email@hidden>
- Date: Thu, 06 Mar 2014 09:30:30 -0600
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@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