• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting rid of specific "May not respond" messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting rid of specific "May not respond" messages


  • Subject: Getting rid of specific "May not respond" messages
  • From: Dale Jensen <email@hidden>
  • Date: Thu, 5 Jun 2008 10:50:16 -0500

This may be an Xcode question, rather than Cocoa, but it relates more to the language, so I'll ask here.

In my project, I get a number of warnings that are invalid, telling me that something or another "may not respond" to something, when in fact, it can. As an example, I get a lot of these:

warning: 'NSString' may not respond to '- stringByReplacingOccurrencesOfString:withString:'
warning: 'NSFileManager' may not respond to '-removeItemAtPath:error:'
warning: 'WebView' may not respond to '-mainFrameURL'


while are all Cocoa framework calls, which do work. In some instances, I've found that tracking down a header file and #importing it sometimes gets rid of the message, but not always (can't seem to get rid of the three shown here, ever.)

As my project grows, I have more and more of these, and after each build, I find myself wading through them to make sure that the warnings I'm getting are just these invalid ones, nothing in the code I've added. It's also a nuisance to try and edit code with the bubbles in there, and closing the bubble does not result in it staying closed after the next build. Not having the bubbles on solves that bit but, again, I'm losing useful functionality due to improper (and hopefully fixable) behaviour.

I don't want to ditch all "may not respond" messages, as they do often point out a problem, but these incorrect and superfluous ones are starting to drive me nuts. Any suggestions or help in getting rid of them would be well appreciated.

Thanks!


dale

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting rid of specific "May not respond" messages
      • From: j o a r <email@hidden>
    • Re: Getting rid of specific "May not respond" messages
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Programatically manipulating an xcdatamodel package?
  • Next by Date: Re: Getting rid of specific "May not respond" messages
  • Previous by thread: Programatically manipulating an xcdatamodel package?
  • Next by thread: Re: Getting rid of specific "May not respond" messages
  • Index(es):
    • Date
    • Thread