Subj : Re: generic getter for more than 256 properties To : netscape.public.mozilla.jseng From : Brann Joly Date : Wed May 12 2004 11:10 am > The id passed to a JSPropertyOp (getProperty, setProperty in JSClass) > comes from the name parameter to JS_DefineProperty, etc. (the property > defining APIs that lack the "WithTinyId" suffix in their names). When > you define a normal property, there is no tinyid. When you define a > property with a tinyid, the tinyid, tagged as an int jsval, gets passed > to your JSPropertyOps. How do u convert the name into an int? i can't find anything about that in the documentation:( I plan to write a small tutorial on generic wrappers/getters/setters when i'm done with my project, since I feel like documentation on this particular topic is really missing :( Brann .