Christophe Nowicki wrote:
    // _retval = (nsISupports **) &ret; // Does not work
    // *_retval = ret;  // Segfault

  NS_ADDREF(*_retval = ret);

Who can I return *any* can of object from an method?

It might be easier to use nsIVariant, though. Then you can use it directly from JS, the conversions will be done automatically.


--
All the world's a stage,
And all the men and women merely players:
They have their exits and their entrances;
And one man in his time plays many parts, [...]     --W. Shakespeare
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to