In some Apple Iphone examples, some properties are declared in the header file and some properties in the implementation file. For example, in Siesmic XML examples
ParseOperation.h
@interface ParseOperation : NSOperation {
NSData *earthquakeData;
@private
NSDateFormatter *dateFormatter;
Earthquake *currentEarthquakeObject;
Contact *currentContactObject;
NSMutableArray *currentParseBatch;
NSMutableString *currentParsedCharacterData;
BOOL accumulatingParsedCharacterData;
BOOL didAbortParsing;
NSUInteger parsedEarthquakesCounter;
}
@property (copy, readonly) NSData *earthquakeData;
@end
ParseOperation.m
@interface ParseOperation () <NSXMLParserDelegate>
@property (nonatomic, retain) Earthquake *currentEarthquakeObject;
@property (nonatomic, retain) NSMutableArray *currentParseBatch;
@property (nonatomic, retain) NSMutableString *currentParsedCharacterData;
@property (nonatomic, retain) Contact *currentContactObject;
@end
What is the use of an additional interface declaration in the implementation file?
source
share