Wie lautet die ObjectiveC-Syntax für die Angabe eines Protokolls als Argument in einer Methode?
Angenommen, ich habe 2 Protokolle, MyProtocol und MyProtocolCB:
@protocol MyProtocolCB <NSObject>
- (void) func;
@end
@protocol MyProtocol <NSObject>
- (void) register:(MyProtocolCB*) cb;
@end
Ich erhalte diesen Syntaxfehler: error: expected type-specifier before 'MyProtocolCB'