ARC - Instance message does not declare a method with selector

i use this line of code :

[self parseXMLFileAtURL:url];

And i get this error :

Automatic Refercence Counting Issue , Receiver type "xmlParser" for instance message does not declare a method with selector "parseXMLFileAtUrl

Any ideas what this is?

Answers


You have something like this:

  -(void)myMethod{
     [self parseXMLFileAtURL:url];
   }

  -(void)parseXMLFileAtURL:(NSURL*)myURL{
      // Some stuff
   }

Put like this:

 -(void)parseXMLFileAtURL:(NSURL*)myURL{
      // Some stuff
   }

 -(void)myMethod{
     [self parseXMLFileAtURL:url];
  }

If this works, it means you need to go to your .h file and declare the method:

 -(void)parseXMLFileAtURL:(NSURL*)myURL;

Or create a private interface in the .m file and declare it there.


Need Your Help

Why do I get this error: 'thread' is not a member of 'std'?

c++ c++11 mingw

I'm using Code::Blocks 13.12 with TDM-GCC (version 4.7.1, 32 bit). When I try to use the thread class, I get the following error:

etree schematron validation extends tag

python xml validation lxml schematron

I am trying to validate an xml by using a group of schemas which a schema that includes the others.