Re: class_respondsToSelector() in runtime.h?
Re: class_respondsToSelector() in runtime.h?
- Subject: Re: class_respondsToSelector() in runtime.h?
- From: Kyle Sluder <email@hidden>
- Date: Thu, 1 Jul 2010 10:42:47 -0700
On Thu, Jul 1, 2010 at 10:30 AM, Jonathon Kuo
<email@hidden> wrote:
> Interesting... so what happens at runtime if a class object invokes an instance method that accesses instance variables? Exception? Assertion? Seg fault?
"Invoke" is an inaccurate word. Let's use the proper term, "send a
message." The sender of the message is irrelevant; all that matters is
the receiver.
It sounds like you have gotten confused, and interpreted the above
thread to mean that a class object will respond to its instance
methods? This is not true. A class object will only respond to
instance methods defined on the root class.
--Kyle Sluder
_______________________________________________
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