need array of strings in IDL

VERIFIED FIXED

Status

()

P3
normal
VERIFIED FIXED
19 years ago
19 years ago

People

(Reporter: mikepinkerton, Assigned: scc-obsolete)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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.
(Reporter)

Updated

19 years ago
Blocks: 11821
(Reporter)

Comment 1

19 years ago
idl-ifying nsITransferable depends on this.

Comment 2

19 years ago
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.
(Reporter)

Comment 3

19 years ago
that might just work. let me keep this bug open and i'll try to use that.
gracias.
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED
(Reporter)

Updated

19 years ago
Severity: blocker → normal
(Reporter)

Comment 4

19 years ago
reducing priority while i try jband's solution.
(Reporter)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Reporter)

Updated

19 years ago
Status: RESOLVED → VERIFIED
(Reporter)

Comment 5

19 years ago
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.
(Reporter)

Comment 6

19 years ago
verified.
You need to log in before you can comment on or make changes to this bug.