I'm trying to implement a @protocol/delegate but I'm getting this error:
Illegal interface qualifier
Here is my code:
//
// MyProtocol.m
// Apple-ObjC
//
//
#import <Foundation/Foundation.h>
@interface MyProtoco : NSObject
@protocol SampleProtocolDelegate <NSObject>
@end
Any of you knows why I'm getting this error or how can I fix it?
I'll really appreciate your help.

You need to see the architecture of the file. You can't put
@protocollike that between@interfaceand@end. Also,@protocolneeds@endand so do@interface.You can have various protocols/interface, you just need to put them one after the other. They are the the same "level" of declaration:
With 2 protocols consecutive and two interfaces too to illustrate the "level".