Subj : [HELP] Not understanding GetProperty/DefineObject... To : netscape.public.mozilla.jseng From : "t o b e" Date : Wed Oct 08 2003 06:23 pm If I succesfully call DefineObject on the global to instantiate a custom class object (haven't called InitClass for that, BTW) why does my own GetProperty fn then get called to retrieve it ? Since DefineObject calls DefineProperty on the parent, making my custom class object a property of the parent, I would have expected the JS engine to be able to find the new object from there. And where exactly am I supposed to pull a reference to the newly created object from unless I cache a * to JSObject somewhere in my own code... this seems kind of redundant. Obviously I'm missing some fundamental understanding here.. I've trawled the code but all I'm really getting are the what's and not the why's..does anyone have a good overview of how all this fits together for me ? Regards, t o b e .