On Feb 22, 2:01 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > You can't, really. You can use one of the XPCOM array classes, but you can't > return a JS Array. > > -Boris
To re-phrase, what I'm interested in doing is having a set of things that live down in the C++ world exposed to JavaScript as a JavaScript array object (so JS can iterate through them via foreach, etc. and then access properties on each item in the array). So, literally passing back a JS Array isn't necessary, per se. Again, if there are examples out there in Mozilla that use "one of the XPCOM array classes" to expose a set of C++ XPCOM objects to JavaScript in an array, I'd love a pointer, or two. Thanks. _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
