Changes

Jump to: navigation, search

Real World Mozilla First XPCOM Component

82 bytes added, 21:29, 11 November 2007
m
Accessing FirstXpcom from the JavaScript Shell
var obj = Components.classes[cid].createInstance()
* Next, take the the nsISupports object returned above and query it (i.e., see if it supports your interface type and if so, change it to that interface) to IFirstXpcom, often referred to as QI (e.g., ''"...you need to QI it to IFirstXpcom..."'').
obj = obj.QueryInterface(Components.interfaces.IFirstXpcom)

Navigation menu