> QI the object to nsISVGValue. That is a pseudo-interface implemented by > nsSVGMatrix that a JS object can't implement. > > --BDS
Please don't do it this way. IIRC when xpconnect wrap the JS object it first ensures that the JS object implements all of the reqired interfaces, so QI will probably not help you to know if the object is a C++ or JS object. In any case I think that you should not limit the ability to call setMatrix from JS unless you redefine the function as a nonscript one in the IDL file. Mark. _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
