Objective C: Class Extensions and Protocol Conformation Warnings
Posted
by Ben Reeves
on Stack Overflow
See other posts from Stack Overflow
or by Ben Reeves
Published on 2010-03-13T11:55:29Z
Indexed on
2010/03/13
12:05 UTC
Read the original article
Hit count: 220
objective-c
|iphone
I have a large class, which I have divided into several different class extension files for readability.
@protocol MyProtocol
@required
-(void)required;
@end
@interface MyClass : NSObject <MyProtocol>
@end
@interface MyClass (RequiredExtension)
-(void)required;
@end
Is there a better way to do this, without the compiler warning?
warning: class 'MyClass' does not fully implement the 'MyProtocol' protocol
© Stack Overflow or respective owner