Created
December 9, 2013 10:28
-
-
Save dodikk/7870197 to your computer and use it in GitHub Desktop.
Correct Include style for objective-c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "LineReader.h" // required to conform protocol LineReader | |
#import <Foundation/Foundation.h> // required to inherit NSObject | |
#include "MyPureCStruct.h" // required to declare plainOldData | |
#include "MyBlockTypedefs.h" // required to include custom blocks | |
@class MyOtherClass; // do not use #import | |
@protocol MyOtherProtocol; // do not use #import | |
@interface WindowsLineReader : NSObject< LineReader > | |
{ | |
@public | |
MyPureCStruct plainOldData; | |
} | |
@property ( nonatomic ) MyOtherClass* classVar ; | |
@property ( nonatomic ) id<MyOtherProtocol> protocolVar ; | |
@property ( nonatomic, copy ) MyCustomBlock block; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment