discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isKindOf: - GSObjCIsKindOf


From: Nicola Pero
Subject: Re: isKindOf: - GSObjCIsKindOf
Date: Thu, 30 Aug 2001 10:39:38 +0100 (BST)

>  >>It seems that the class method +isKindOfClass: has precedence over the
>  >>instance method -isKindOfClass: defined in NSObject (an thus 
> inherited >>by every class object).
>  >> The +isKindOfClass: is defined with the == operator and NSObject.
>  >>Is this correct ?
> 
>  >Yes - according to the doc, this is what other openstep systems do
> 
> 
> Why duplicate the isMemberOf method and why deviate from the semantic
> of the instance method isKindOfClass ?

I don't know
 
> Objective-c is based on smalltalk and it seems very strange to me that
> the concept of "kind" is so deviated, unless some important reason
> induced this design decision. Somebody knows why ?
> (Strange, I looked in the specs of OpenStep (on gnustep.org) and in the 
> docs of MacOSX and I didn't find a single word on isKindOfClass.)

Check in the NSObject protocol, not in the NSObject class




reply via email to

[Prev in Thread] Current Thread [Next in Thread]