Hi Experts,
I'm trying to figure out whats wrong with this code, it returns an error while its running. I'm trying to implement a parser using NSXMLParser class.
The error is: "[ParseXML setCurrentProperty:]: unrecognized selector sent to instance 0x100112e70" and it happens into the delegate method bellow:
I'm importing AddressBook framework but it seems that the method setCurrentProperty is no available into my class. Any help will be appreciated.
Thanks,
Marcos Vilela.
I'm trying to figure out whats wrong with this code, it returns an error while its running. I'm trying to implement a parser using NSXMLParser class.
The error is: "[ParseXML setCurrentProperty:]: unrecognized selector sent to instance 0x100112e70" and it happens into the delegate method bellow:
Code:
- (void) parser : (NSXMLParser *)parser didStartElement : (NSString *)elementName
namespaceURI : (NSString *)namespaceURI qualifiedName : (NSString *)qName
attributes : (NSDictionary *)attributeDict {
if ( [elementName isEqualToString:@"lastName"] ) {
[COLOR="DarkRed"][self setCurrentProperty:kABLastNameProperty];[/COLOR]
return;
}
}
I'm importing AddressBook framework but it seems that the method setCurrentProperty is no available into my class. Any help will be appreciated.
Thanks,
Marcos Vilela.
Last edited by a moderator: