🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1016

Loading classes at run-time: How?

#1016
From: Frank Hartlep
Date: Mon, 14 Sep 1992 13:04
14 lines
1264 bytes
I do not want to use the objc_{load,unload}Module routines because
of their FIFO behaviour. Just loading the class file with rld isn't
enough, my app still complains 'class MyClass not linked into application'.
I can only guess why it reacts like that: There's a hash table containing
the Class structures of all classes known to the app, and by trying
objc_getClass ("MyClass") I get the same error message. So I suppose I
have to insert MyClass into the table by hand. This can be done with
objc_addClass (). The only problem is that I can't find any way to
obtain the Class structure of MyClass, which I need as an argument for
objc_addClass (). Any ideas from where to get this little beast?


Frank
mauriti@cs.tu-berlin.de
Technical Details
Message-ID: <TA168WJ@mailgzrz.tu-berlin.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!zrz.tu-berlin.de!opal.cs.tu-berlin.de!mauriti

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!zrz.tu-berlin.de!opal.cs.tu-berlin.de!mauriti
From: mauriti@cs.tu-berlin.de (Frank Hartlep)
Subject: Loading classes at run-time: How?
Message-ID: <TA168WJ@mailgzrz.tu-berlin.de>
Sender: news@mailgzrz.tu-berlin.de (News Manager)
Nntp-Posting-Host: rinser.cs.tu-berlin.de
Organization: Technical University of Berlin, Germany
Date: Mon, 14 Sep 1992 13:04:18 GMT
Lines: 15