HomePage RecentChanges

This wiki was last modified more than half a year ago and will be deleted eventually!

UsingComponents

Moved to the Mozilla Developers wiki.


Commonly, we start our scripts like so:

 var Cc = Components.classes;
 var Ci = Components.interfaces;

If we want to get a hold of a component, we then do something like:

 var rc = Cc["@mozilla.org/registry;1"];
 var rs = rc.getService(Ci.nsIRegistry);

See also:


Moved to the Mozilla Developers wiki.