I am in the process of cleaning my code and testing for bugs, when I came across this build error: ['xmlEntity' is not an Objective-C class name or alias]. Here is a shorten version of my class .h file.
@interface PMXMLParser : NSXMLParser {
NSMutableDictionary *xmlEntity;
NSMutableDictionary *collectionDict;
}
@property (nonatomic, retain) NSMutableDictionary *xmlEntity;
@property (nonatomic, retain) NSMutableDictionary *collectionDict;
@end
Here is the .m file.
@implementation PMXMLParser
@synthesize xmlEntity, collectionDict
- (void) dealloc
{
// this builds correctly, with no issues.
[collectionDict release];
// 1. This works
//self.xmlEntity = nil;
// 2. This causes the build error: 'xmlEntity' is not an Objective-C class name or alias
//[xmlEntity release];
[super dealloc];
}
@end
Now to me these example 1 and 2 do the same thing, just with a little bit more work is done for number 1.
Does anyone know why I am getting this build error for number 2?
Edit: 07/30/2010 - The code presented here will compile correctly, this is just a shorten version of my whole class. But my current class does not compile. I will post the whole class later when I taken out private code.
Thanks.