From: Robert R. <rra...@ya...> - 2000-12-10 22:55:14
|
I haven't messed with your new release much, but I did notice this problem with subclassing similar to yours. When you use that technique to subclass DynLayers and such, it causes a problem when in the Object you add each id to the DynAPI.unassigned array. Lets say you have 5 DynLayers that have been initialized, then the unassigned array will have 6 DynLayer entries because of this line: DynLayer.prototype = new DynObject(); I don't know if it will ever be a problem, but I think you might be better off adding to the unassigned array in the DynLayer, etc themselves. Of course that would mess up some other stuff too (like toString), so maybe its not worth it. -- // Robert Rainwater On 12/10/2000, 7:41:28 AM EST, Pascal wrote about "[Dynapi-Dev] Dynacore preview release": > I just uploaded a preview release of my Dynacore distribution, this is > mainly interesting for the other developers. I think some of the ideas I > added could be very good implementations for the official version. The most > important change is the making of the DynObject. > you can find it here http://www.dynamic-core.net/dynacore.zip > This object is now the base class of the DynLayer and DynDocument, and it > implements all the child-parent functionality shared by these objects. The > idea is that you could use the DynObject as a base class for management > widgets like FocusManager, ThreadManager, LayoutManager, etc.. These > widgets are not using any visible components, but do need the > add/delete/remove functionality. > The current event code is mainly extending the DynObject, but my goal is to > have it only extend this object and not the DynLayer/DynDocuments.. so that > it is really a seperate object/extension. > Another important addition is the manual part, this contains the full > tutorial, and the developers reference. Somebody should update the reference > for the official DynAPI (unless the dynobject code is also copied into the > official release, this would make it almost 100% correct). > For more info on the changes you can read the "changes" part of the manual. > cya, > Pascal Bestebroer > pa...@dy... > http://www.dynamic-core.net > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |