Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ilx.mac

macrumors member
Original poster
Mar 10, 2009
63
0
I am getting the warning : ERROR:Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments

while building the following code.

NSData *theResponseData = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&theResponse error:&theError];
// End
[self parsexmlFileData:theResponseData]; (I am getting that warning here)

and the method:

- (void) parsexmlFileData:(NSData *) responsedata {

stories = [[NSMutableArray alloc] init];
rssParser = [[NSXMLParser alloc] initWithData:responsedata];
[rssParser setDelegate:self];
[rssParser setShouldProcessNamespaces:NO];
[rssParser setShouldReportNamespacePrefixes:NO];
[rssParser setShouldResolveExternalEntities:NO];

[rssParser parse];

}

What am i doing wrong. can some one figure this out?

Thanks in Advance!
 
You need to declare the method in an @interface section either in the .h file or in a separate one in the .m as a category.

BTW, check you're not leaking memory for the stories and rssParser variables - you might well be looking at that snippet.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.