I need some mechanism where i can pass an array of strings to an idl'ified interface that can also be done in JS. scc and waterson suggested nsIStringArray, which scc is working on now.
idl-ifying nsITransferable depends on this.
It may not be your first choice, but... nsISupportsPrimitives.idl declares nsISupportsString which is an nsISupports wrapper for strings. These can be held in containers that hold nsISupports objects. These objects are supported as components in nsSupportsPrimitives.cpp and the factory for the Component is registered in nsXPComInit.cpp as "component://netscape/supports-string" See nsISupportsPrimitives.idl for the other primitive types wrapped this way. They are all scriptable.
that might just work. let me keep this bug open and i'll try to use that. gracias.
reducing priority while i try jband's solution.
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
seems to be good enough, though we end up copying data a lot in and out. that's alright for now, i guess. resolving fixed.
You need to log in before you can comment on or make changes to this bug.