• 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: Question about respondsToSelector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about respondsToSelector


  • Subject: Re: Question about respondsToSelector
  • From: Negm-Awad Amin <email@hidden>
  • Date: Tue, 19 Aug 2008 08:18:30 +0200


Am Mo,18.08.2008 um 20:17 schrieb Carmen Cerino Jr.:

Does the id type have enough information for the respondsToSelector method to work. I have a class with an ivar of type id, and when I invoke the respondsToSelector method it fails when it should succeed. I am assuming it should work fine, because if I skip checking with the respondsToSelector method and just make the call, it executes the method. Can someone please tell me what I am doing wrong?
Since the whole dispatch is done by and only by the runtime (exception: messages to super) the rte holds the information. (The compiler only throws warnings, because he can proceed with his work. This is, because he does nothing else than checking!)

As others said:
a) We need a piece of code
b) Typo?

Cheers,
Amin



Thanks,
Carmen
_______________________________________________

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

Amin Negm-Awad email@hidden




_______________________________________________

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


References: 
 >Question about respondsToSelector (From: "Carmen Cerino Jr." <email@hidden>)

  • Prev by Date: Re: Right place to unobserve notifications in a document
  • Next by Date: Deploying project as backward compatible
  • Previous by thread: Re: Question about respondsToSelector
  • Next by thread: Re: Question about respondsToSelector
  • Index(es):
    • Date
    • Thread