Re: Array of Objects
[email protected] Tue, 9 Jul 2013 04:38:30 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.plugins |
|---|---|
| Message-ID | <[email protected]> |
On Friday, December 18, 2009 3:55:24 PM UTC+5:30, Digambar Rasal wrote: > Looks good now. I have figured out how to return Array of objects > defined in plugin which can't be created from Javascript. > > Say Object - Note which has date and string as properties. From > JAVAScript, there is call to get complete list of notes. So Plugin > need to create object big enough to hold all notes with > NPN_createObject ( ) i.e. in allocate sizeofNOTE X number of notes is > allocated and returned. When there is access to Note[n], > NPN_GetProperty returns pointer to specific Object. > > - Digambar Can you explain in some detail...?