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: 213

Filed under:
|

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

Related posts about objective-c

Related posts about iphone