Christopher Lenz wrote:
So what am I missing? The component factory does seem to support nsIClassInfo, but it just doesn't implement the GetInterfaces hook?

That's correct. As I said, nsGenericFactory implements nsIClassInfo (in the sense of "can be QId to it"), but to have a useful GetInterface implementation, the component must support classinfo.


I was under the impression that the class
info, if at all implemented, would be provided by the components factory.

hm, well, I was surprised to see that :). But classinfo support in the factory requires consideration from the component author. (and it costs codesize of course).


Should I be creating an instance of the component and query that for the
nsIClassInfo interface instead?

Will give exactly the same result :)


Is it considered okay to create instances of
random components?

I'd say so. Although, if you do this in a current mozilla, you'll createinstance stuff which already exists as a service, and that may be bad... so it's probably better to use the classobject.
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to