objective-c

How do I remove the alert: "...may not respond to..."


In my .m file I call a method that is inside the same .m file. In the header I have the correct import for the header but I keep getting this alert:

alt text http://www.balexandre.com/temp/2010-04-11_2222.png

What am I doing wrong? What should I do in order to make this error disappear? I'm kinda lost here :-(

Even if I changed this to:

NSString *path = [[NSString alloc] 
   initWithString:@"...."];
[self parseXMLFileAtURL:path];
[path release];

Solution

  • You can just declare the method in your .h file. Or move the method implementation ahead of where it is called, if it's not going to be called from another class.