[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can I ask a Objective-C Class Question, please?
From: |
Paul E. Johnson |
Subject: |
Re: Can I ask a Objective-C Class Question, please? |
Date: |
Thu, 02 Aug 2001 15:56:22 -0500 |
Daniel Kottow wrote:
> > Question. WHen you need to give a Class argument, is there no more
> > direct way than creating an instance of a class and then using [obj
> > getClass] as the argument? It just seems like the long way around.
>
> there is also [MyClass class]
>
> --
> Daniel Kottow
This turned out to be the missing piece. In the Object.h file, it does
not list a + class method, but it must be somewhere, because that does
what I want.
In case you want to see an example of a Swarm program that passes a class
as an argument, and then spawns instance of that class, here it is:
http://lark.cc.ukans.edu/~pauljohn/Swarm/WorkingExampleCode/objc/ClassPassedAsArgument.txt
Paul Johnson
==================================
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.