This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
(objective-C runtime) dynamicly creating new classes
- From: Ronald Oussoren <oussoren at cistron dot nl>
- To: gcc at gcc dot gnu dot org
- Cc: pyobjc-dev at lists dot sourceforge dot net
- Date: Fri, 6 Feb 2004 12:58:34 +0100
- Subject: (objective-C runtime) dynamicly creating new classes
Hi,
I'm one of the developers of PyObjC, a Python binding to Cocoa on MacOS
X. This is actually a binding to the Objective-C runtime on MacOS X.
We'd like to support GNUstep as well, but that isn't working out well
at the moment. It mostly works, except for one very important feature:
creating new Objective-C classes.
The Apple/NeXT Objective-C runtime has a public API for creating new
Objective-C classes at runtime, and we use this API to enable creating
new Objective-C classes in Python.
The GNU runtime does not seem to have a public API for creating new
classes. I have been using some private functions in the GNU runtime to
get us going, but that is a very fragile solution that already broke
several times.
Would it be possible to add a function for creating new classes to the
GNU Objective-C runtime, preferably with an interface that is simular
to objc_addClass in the Apple/NeXT runtime?
Ronald
--
X|support bv http://www.xsupport.nl/
T: +31 610271479 F: +31 204416173