Re: Converting an object back from nsISupports to Javascript Object or Array ( { } or [ ] )
David Bradley <[email protected]> Wed, 09 Oct 2002 10:13:53 -0400
| Newsgroups | gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Kok Hoor , SolutionX wrote: > Hi, > > I am only getting an nsISupports as the subject when the observers > receive the notification. My question is, how should I QueryInterface on > the subject to retrieve either a: > > 1. Javascript object > 2. Javascript array > If I understand you correctly, you'll need to QI to nsIXPConnectJSObjectHolder and then access the JSObject property via GetJSObject. That will give you a JSObject*. Are you looking for JSObject pointer? David