Re: class_respondsToSelector() in runtime.h?
Re: class_respondsToSelector() in runtime.h?
- Subject: Re: class_respondsToSelector() in runtime.h?
- From: Matt Neuburg <email@hidden>
- Date: Thu, 01 Jul 2010 07:56:17 -0700
- Thread-topic: class_respondsToSelector() in runtime.h?
On Wed, 30 Jun 2010 18:02:38 -0400, Laurent Daudelin
<email@hidden> said:
>On Jun 30, 2010, at 17:48, Greg Parker wrote:
>
>> On Jun 30, 2010, at 2:42 PM, Laurent Daudelin wrote:
>>> Yes, I know that, but can you send an instance method to a class object?
>>
>> Yes, you can. Every class object is itself an instance of NSObject.
>
>Thanks, Greg. I guess you learn something new every day
Apple's own "Cocoa Fundamentals Guide" is well worth reading. It's truly
excellent, and tells about Cocoa fundamentals (i.e. things one needs to know
in order to use Cocoa):
<http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Cocoa
Fundamentals/CocoaObjects/CocoaObjects.html#//apple_ref/doc/uid/TP40002974-C
H4-SW35>
"Instance methods defined in a root class can be performed both by instances
and by class objects. Therefore, all class objects have access to the
instance methods defined in the root class."
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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