D Fuller wrote:
> 
> Where is the IDL for nsIServiceManager?  I've only found a C++ header file.
> How would one not using C++ go about obtaining a reference to it?
> 
> Thanks,
> D

nsIServiceManager is not expressed in idl and not directly
callable from anything other than C++ code. It is declared in
nsIServiceManager.h (which you have apparently found). In JS you
can create services using
Components.classes["yourContractID"].getService().

http://mozilla.org/scriptable/components_object.html#_classes

I'm not certain how other xpcom language mappings do this. 

Is this what you need? Or are you trying to do something else?

John.

Reply via email to