swarm-support
[Top][All Lists]
Advanced

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

Re: What class are you?


From: Rick Riolo
Subject: Re: What class are you?
Date: Wed, 24 Sep 1997 11:42:18 -0400 (EDT)

I think you can do this:
  [[yourObject class] name]
to get a string with the class name back.
See Next book in appendix C under class and instance methods.
  - r

Rick Riolo                           address@hidden
Program for Study of Complex Systems (PSCS)
4068 Randall Lab                
University of Michigan         Ann Arbor MI 48109-1120
Phone: 313 763 3323                  Fax: 313 763 9267
http://pscs.physics.lsa.umich.edu/PEOPLE/rlr-home.html
http://pscs.physics.lsa.umich.edu//pscs.html

On Wed, 24 Sep 1997, Sven N. Thommesen wrote:

> Date: Wed, 24 Sep 1997 09:29:19 -0500
> From: Sven N. Thommesen <address@hidden>
> To: address@hidden
> Subject: What class are you?
> 
> 
> I'm having to track down a bug where an object appearing in a list is not
> the kind it is supposed to be (!).
> 
> Does anyone know what the syntax is for getting the class name of the
> offending object back, as a printable string?
> 
> The Next book discusses the boolean methods "isKindOf: [Class someClass]"
> and "isMemberOf: [Class someClass]", but using those would quickly get
> tedious ...
> [are you a witch? no, how about a troll? maybe an ogre? etc. etc.]
> 
> In fact, the Next book discusses many methods in its early chapters that
> are not mentioned in the formal language definition, which leads me to
> believe the runtime system is involved. So: where do I find comprehensive
> documentation for the objects and methods available with the GNU version of
> ObjectiveC?
> 
> Any pointers (not id's) appreciated,
> Sven
> 
> 
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.
>                   ==================================
> 

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

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