discuss-gnustep
[Top][All Lists]
Advanced

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

Re: isKindOf: - GSObjCIsKindOf


From: Marko Mikulicic
Subject: Re: isKindOf: - GSObjCIsKindOf
Date: Thu, 30 Aug 2001 02:06:07 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801

Nicola Pero wrote:
>>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 ?

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.)

Marko








reply via email to

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