discuss-gnustep
[Top][All Lists]
Advanced

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

protocols being implemented in the superclass


From: Stefan Böhringer
Subject: protocols being implemented in the superclass
Date: 13 Dec 2002 15:22:33 +0100

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.

Stefan






reply via email to

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