I've noticed that objects in a tree are precreated twice. First
flagPrecreate traverses the tree doing precreation in post-order, then
create does the same thing indirectly. Normally this doesn't cause
problems but I'm working on a tree widget and it's causing wierd
problems.
So, can somebody tell me, what is the official way objects are supposed
to be created? Can someone more familiar with the creation process offer
suggestions?
Also: I've noticed some of the core code using event handlers
gratuitously in place of methods. With any event, there are some things
which are essential to the nature of the event; without them, the event
is meaningless. There are other things which are auxilliary to the
event, which are triggered by it. The former belong in a method, the
latter in listeners. As it is, there are several methods which don't do
anything but dispatch events; all the real work is done in a listener,
defeating the key principle of OO; that operations on data should go
together with the data upon which they operate.
It's an academic argument until you want to, say, extend the class and
override the code in the listener. Or you're just trying to understand
the code and you have to bounce all around different files because the
meat of that method is actually in a listener somewhere else.
-Adrian
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-dev