home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6143 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.2 KB  |  27 lines

  1. Newsgroups: comp.sys.next.programmer
  2. 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
  3. From: mauriti@cs.tu-berlin.de (Frank Hartlep)
  4. Subject: Loading classes at run-time: How?
  5. Message-ID: <TA168WJ@mailgzrz.tu-berlin.de>
  6. Sender: news@mailgzrz.tu-berlin.de (News Manager)
  7. Nntp-Posting-Host: rinser.cs.tu-berlin.de
  8. Organization: Technical University of Berlin, Germany
  9. Date: Mon, 14 Sep 1992 13:04:18 GMT
  10. Lines: 15
  11.  
  12. I do not want to use the objc_{load,unload}Module routines because
  13. of their FIFO behaviour. Just loading the class file with rld isn't
  14. enough, my app still complains 'class MyClass not linked into application'.
  15. I can only guess why it reacts like that: There's a hash table containing
  16. the Class structures of all classes known to the app, and by trying
  17. objc_getClass ("MyClass") I get the same error message. So I suppose I
  18. have to insert MyClass into the table by hand. This can be done with
  19. objc_addClass (). The only problem is that I can't find any way to
  20. obtain the Class structure of MyClass, which I need as an argument for
  21. objc_addClass (). Any ideas from where to get this little beast?
  22.  
  23.  
  24. Frank
  25. mauriti@cs.tu-berlin.de
  26.  
  27.