swarm-support
[Top][All Lists]
Advanced

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

Re: getClass


From: Perrone Alessandro
Subject: Re: getClass
Date: Thu, 4 Feb 1999 11:10:51 +0100

Hi
>  can anyone give me some info on how getClass can be used? I'd like to be
>able to see if an object is of a certain type and act on this information,
>but I'm not sure exactly how I'd go about this. What exactly does getClass
>return anyway? Thanks,
How about witing two methods on your .m such as

 -setObjectType: (int) objectType {
myObjectType = objectType;
return self;
}

-(int) getObjectType {
return myObjectType;
}

Hope this help.
                                        ALEX

--
      ,,,,
      /'^'\
     ( o o )
-oOOO--(_)--OOOo---------------------------------------------------
                                Amo parlare di niente,
                        E' l'unico argomento di cui so tutto.
  .oooO             Alex Perrone - address@hidden address@hidden
  (   )   Oooo.       Home Page: http://venus.unive.it/~alex
---\ (----(   )----------------------------------------------------
    \_)    ) /
          (_/



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