Closed Bug 12157 Opened 25 years ago Closed 25 years ago

need array of strings in IDL

Categories

(Core :: XPCOM, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: mikepinkerton, Assigned: scc-obsolete)

References

Details

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.
Blocks: 11821
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.
Status: NEW → ASSIGNED
Severity: blocker → normal
reducing priority while i try jband's solution.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
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.
verified.
You need to log in before you can comment on or make changes to this bug.