Warning: Messages without a matching method signature will be assumed to return 'id'

Discussion in 'iOS Programming' started by ilx.mac, Mar 18, 2009.

  1. ilx.mac macrumors member

    Joined:
    Mar 10, 2009
    #1
    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!
     
  2. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #2
    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.
     

Share This Page