• 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
Re: Getting rid of Obj-C "may not respond to" warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting rid of Obj-C "may not respond to" warning


  • Subject: Re: Getting rid of Obj-C "may not respond to" warning
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 4 Sep 2007 09:36:50 +0100

On 3 Sep 2007, at 21:40, David Dunham wrote:

My application is using an undocumented NSApplication method. I realize the possible dangers in this, and would like to get rid of the warning that GCC gives me. Is there a way to do so (without globally disabling the warning)?

Often you can simply cast the type to "id". GCC can't claim to know whether an object will respond to a message if the only type information it has is that it's an object.


Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Getting rid of Obj-C "may not respond to" warning
      • From: Chris Suter <email@hidden>
References: 
 >Getting rid of Obj-C "may not respond to" warning (From: David Dunham <email@hidden>)

  • Prev by Date: Re: warning: local declaration hides instance variable
  • Next by Date: Re: Getting rid of Obj-C "may not respond to" warning
  • Previous by thread: Re: Getting rid of Obj-C "may not respond to" warning
  • Next by thread: Re: Getting rid of Obj-C "may not respond to" warning
  • Index(es):
    • Date
    • Thread