Topics Man wrote:
> I should have stated that I'm particularly thinking of the XPCOM IDL
> compiler (XPIDL) - maybe this has some inherent limitations on the argument
> types it can handle which aren't limitations of actual XPCOM itself.
>
> Cheers
> Chris
The xpidl compiler is very flexible. However, xpconnect does have some
difficulty in dealing with (1) multiple out parameters and (2) native
types (like a structure or void pointer) that can't easily be converted
to a jsval. If you want your component to be scriptable, avoid items
(1) and (2) above in your IDL and you should be okay.
Item (1) above can be dealt with and made to work from the JS side
but requires creating a dummy object and passing that in to receive
the extra out params - the result is awkward and looks ugly (but works).
Regards,
Rick