interface nsIMyInterface : nsISupports {
string test(in nsISupports o);
}and then it is used as follows:
alert(aMyInterface.test(Packages.java.lang.Class));
The implementation of test() is something like this:
test : function(o) {
var s = "";
for (i in o) {
s = s + i + ",";
}
return s;
},All I see is "QueryInterface,". I'm not seeing any other method (e.g., forName) of java.lang.Class. Which interface should I query for from o so that I can call other methods of the argument to test()?
Thanks,
David _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
