• 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: Sending a Selector to another Class.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending a Selector to another Class.


  • Subject: Re: Sending a Selector to another Class.
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 21 Oct 2009 10:25:02 -0700

On Oct 21, 2009, at 10:02, Shawn Erickson wrote:

But I just get an error in the Debugger saying
+[otherClass doSomethingElse]: unrecognized selector sent to class 0xe5c4



You are sending a message to an object that doesn't respond to that message
(aka no implementation for it). The error message you listed should have
more information about the class of the object you messaged incorrectly,
what does the rest of it say?

The error message has enough information -- the "+".

The problem is that the OP sent an instance method selector to the class object, which obviously doesn't recognize it. That indicated a confusion between classes and instances (at a minimum), which drove I.S. into the well known demented-schoolmarm-handing-out-homework impersonation. :)
_______________________________________________


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: 
 >Sending a Selector to another Class. (From: Joshua Garnham <email@hidden>)
 >Re: Sending a Selector to another Class. (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Sending a Selector to another Class.
  • Next by Date: Re: Sending a Selector to another Class.
  • Previous by thread: Re: Sending a Selector to another Class.
  • Next by thread: Re: Sending a Selector to another Class.
  • Index(es):
    • Date
    • Thread