swarm-support
[Top][All Lists]
Advanced

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

Re: What class are you?


From: Sven N. Thommesen
Subject: Re: What class are you?
Date: Wed, 24 Sep 1997 18:11:47 -0500

At 01:21 PM 9/24/97 -0500, you wrote:
>At 11:42 AM 9/24/97 -0400, you wrote:
>>
>>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 was right; this code works 'out-of-the-box'.

Scott's code using object_get_class_name(myObject) also works,
but to use this I had to #import <objc/objc-api.h>.

So now I have another tool, but the bug is still eluding me ...
Looks like another stray string pointer or somesuch :-(

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


reply via email to

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