🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1633

isKindOf: and IsKindOfClassNamed: problems

#1633
From: dobermanmike Mike Panzitta
Date: Mon, 28 Sep 1992 06:23
25 lines
1128 bytes
Has anyone noted these problems with the above methods:

-  First, in 2.x the second method was called isKindOfGivenName: and
   is now isKindOfClassNamed: in 3.0.  No warning or anything that I'm
   aware of indicated this change, and there is no backwards
   compatibility.

-  Second, and more important, I have discovered in a program (actually
   interactively within GDB) this interesting phenomena:

   (gdb) print [aClassObject isKindOf:[Process class]]
   $6 = 0
   (gdb) print [aClassObject isKindOfClassNamed:"Process"]
   $7 = 1

   The second case is the one that is correct.

Any answers or insight?  Thanks in advance,

-Mike

--
Mike Panzitta
Doberman Systems
doberman!mike@uunet.uu.net (NeXTMail)
Technical Details
Message-ID: <1992Sep28.062357.11948@doberman.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!javelin.sim.es.com!doberman!mike

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!javelin.sim.es.com!doberman!mike
From: doberman!mike (Mike Panzitta)
Subject: isKindOf: and IsKindOfClassNamed: problems
Message-ID: <1992Sep28.062357.11948@doberman.uucp>
Sender: mike@doberman.uucp
Reply-To: doberman!mike@esunix.sim.es.com
Organization: Doberman Systems
Date: Mon, 28 Sep 92 06:23:57 GMT
Lines: 25