home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: 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
-
- 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
-
-