19 Apr 2000 shaver   » (Master)

mathieu: in the XPCOM case, at least, we can enumerate all known interfaces (and implementations) -- from an interpreted language, no less! -- regardless of which ones are currently instantiated.

js> for (i in Components.interfaces) print (i);             
nsISupports
nsILocalFile
nsIForwardIterator
nsIRDFXMLSinkObserver
...
js> for (i in Components.classes) print(i);
mimecth:application/x-pkcs7-mime
component://netscape/messenger/stringservice?type=pop3
component://netscape/messenger/stringservice?type=smtp
component://netscape/intl/charsetdetect?type=ruprob
component://netscape/intl/charsetdetect?type=ukprob
...
(Don't mind the silly implementation naming; it's going to change.)

So yeah, an object browser in XUL and JS is quite possible, though you probably want some runtime hooks as well to get handles to pre-existing instances.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!