Gammieri Vincenzo wrote:
If you want to pass a JS Object as parameter for a XPCOM interface, I think
that you must write at least a QueryInterface method for your JS Object,
that is make it an object implementing an XPCOM interface!

Actually, in many cases, XPConnect can synthesize a QueryInterface method. (For example, if you try to pass a JS Object as an nsIFoo through an interface, XPConnect will make the synthesized QueryInterface support nsIFoo)



This link may be helpful: http://www.mozilla.org/scriptable/js-components-status.html#unwrapping
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to