Norbert Püschel wrote:
> Well, unfortuntely these examples don't help and don't seem to work. The 
>  first and second example only show code that passes strings, not 
> objects.

No.  They pass nsIDialogParamBlock objects.  What those store is a 
separate question; please see that interface.

> The third example is exactly what I tried to do

No.  The third example is very unclear, but it passes an XPCOM object 
(as the page title says).  You're passing in a JSObject, which gets 
coerced to nsISupports.  So on the other end the dialog sees an nsISupports.

If you want it to see random properties of your JSObject, either you 
need to define and implement an interface that your JSObject implements 
or you need to use wrappedJSObject stuff on both ends.

> but unfortunately it simply doesn't work as documented!

It certainly does; the documentation just isn't very clear.

-Boris
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to