Hey,
I have troubles using a foreign protocol in Objective-C.
Is there any other solution than adding additional Protocols?
Example:
Class1.h
#import "Class2.h"
@protocol Class1Delegate <NSObject>
@required
-(NSArray*) someMethod;
@end
@interface Class1 : NSObject
{
Class2 *variable;
} ...
Class2.h
#import "Class1.h"
@interface Class2: NSObject {
id <Class1Delegate> delegate;
}
@property (nonatomic,assign) id <Class1Delegate> delegate;
Error:
error: cannot find protocol declaration for 'Class1Delegate'