D. Alvarado wrote:
> I can't figure out how to launch a window using the
> nsWindowWatcher::openWindow command and pass arguments to the child
> window so that I can extract these arguments from JS using the
> "window.arguments." My main problem is that I don't know how to
> convert multiple arguments to an nsiSupport* object.
You need to use an nsISupportsArray, like this:
nsCOMPtr<nsISupportsArray> array;
NS_NewISupportsArray("@mozilla.org/supports-array;1",
getter_Addrefs(array));
array->InsertElementAt(your_first_argument, 0);
array->InsertElementAt(your_second_argument, 1);
Now you can use array as the arguments parameter.
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
-- Benjamin Franklin