I just create a protocol header file by doing:
File -> New -> File -> (Cocoa Touch) Objective-C Protocol -> Next -> input protocol name -> Next -> choose my Target -> Create
when I trying to create a method list in the protocol header file. I noticed Dynamic Typing doesn't work. When I type "NSStr" in other files, usually a Class list will automatically popup and all classes are marked with colors. why it doesn't work in protocol header file?
BTW, I tried putting protocol code in existing class file, that works. why it doesn't work in separated file?
Some key words will work, such as "void". the popup list will show. but other key words like "NSString" will not be recognized.
My protocol is like this:
#import <Foundation/Foundation.h>
@protocol PanToSwitchViewDelegateProtocol <NSObject>
@end