May not respond warning!
May not respond warning
The “May not respond” warning is a common one amongst new and rushing developers alike but never fear it is the absolute easiest warning to fix. The may not respond warning arises when the compiler comes across a method call that is not explicitly defined in the class header file.
Examples
A lot of people seem to be experiencing warnings like Warning: MyViewController may not respond to ‘-parseXMLFileAtURL’ or similar (where MyViewContoller is your class and parseXMLFileAtURL is a method name)
So to fix this error all we have to do is name this function (this happens to be a xml parser delegate method) in the classes .h file. So in MyViewController.h we simply add the parseXMLFileAtURL method definition,
- (void) parseXMLFileAtURL:(NSString *) myUrl;
This should get rid of that pesky warning!
Similar Posts
- None Found
One Response to “May not respond warning!”
Leave a Reply















Carin on June 1st, 2009
Hi Tom,
saw one of your apps on iPhone application list and thought that you might be a perfect participant for a survey regarding developer experience, made by the university of Manchester and the technical university of Luleå, Sweden.
Vouchers will be offered to the participants as a thanks and since there´s limited number of participants, don’t hesitate to contact me on carin@prontocommunication.se if you are interested in participating in the beginning of June.
Best Regards,
Carin Lundin, Pronto Communication