• 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
respondsToSelector & "warning: may not respond"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

respondsToSelector & "warning: may not respond"


  • Subject: respondsToSelector & "warning: may not respond"
  • From: Mikkel Eide Eriksen <email@hidden>
  • Date: Fri, 26 Nov 2010 18:08:21 +0100

Hi all,

I have the following bit in my code:

if ([obj respondsToSelector:@selector(setOrdinal:)]) {
	[obj setOrdinal:value];
}

XCode gives a warning that obj may not respond to setOrdinal: which won't be a problem unless something is really screwy. But how do I get rid of the warning? Or do I just live with it?

Regards,
Mikkel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Prev by Date: Re: Change duration of a running CAAnimation?
  • Next by Date: Re: Change duration of a running CAAnimation?
  • Previous by thread: Re: Radio dial buttons [iOS] -sheesh
  • Next by thread: Re: respondsToSelector & "warning: may not respond"
  • Index(es):
    • Date
    • Thread