+ (id) newWithNode:(CXMLNode*)node {
return (id)[[[NSMutableDictionary alloc] initWithNode:node]autorelease];
}
In this code MutableDictionary is allocated and initialized with node but it is giving warning in soapdictionary.How can we solve this?
NSString *name=[[NSArray alloc] init];is after areturn, which will never run. If it is useless code and that’s what the warning message is talking about, just remove this line of code.Besides, initializing NSArray object and assign it to a NSString pointer makes no sense.
Update
NSMutableDictionarydoesn’t haveinitWithNode:method by default. I am not familiar with Sudzc (code.google.com/p/sudzc) but per your description I guess you are using this. Try to replaceNSMutableDictionarywithSoapDictionaryif that’s true. It implemented ainitWithNode:method.