discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: protocols being implemented in the superclass


From: Nicola Pero
Subject: Re: protocols being implemented in the superclass
Date: Fri, 13 Dec 2002 14:03:18 +0000 (GMT)

> A problem I encountered with gcc3.2 (but which is probably present with
> other versions, too) is as follows:
> 
> @interface Superclass : NSObject
> - methodA;
> - methodB;
> @end
> 
> @protocol someProtocol
> - methodA;
> - methodC;
> @end
> 
> @interface Subclass : Superclass <someProtocol>
> - methodC;
> @end
> 
> If the methods are implemented exactly as they are declared (i.e. no
> additional implementations in the .m files) I get warnings about
> -methodB not being implemented by class "Subclass" though it is through
> "Superclass". This seems to need a fix in the compiler.

Hi Stefan,

this warning sometime is desirable, sometime is not.

You can use the GCC option '-Wno-protocol' to turn it off.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]