Stéphane Ducasse-2 wrote:
In VisualWorks you use the builder and it generates a class for you a bit in the same way then you code the missing code.
You said:
Of course, but I don´t know do it of another way. Literal array is very complicated for me. Xml serialization and Moose serialization don´t be possible. The code generated is HUGE
and in VW all the interface is generated using the UIBuilder. so I'm wondering why this is working
I´m not sure of understand good that... The only class than works in UIBuilder for create the UI (#specMorph) is CLViewDesigner class. That class create the #specMorph and #specEvents methods, in a child of CLView class. All examples in CLFramework be CLView kinds. In the #specEvents is returned a Dictionary where exists a relation between morph, type of event and handler of that event. All that is more more readable than VW mechanism, where not is easy understand it. Stéphane Ducasse-2 wrote:
I do not know exactly the VW framework details but we can cerytainly interpret the following literal array.
[.....]
I understand is possible create a interpreter for that code, with #perform: message. But the difficult seems GeneratE that code, not reader. Not is equal a result like that...? |CanvasMorph btnAction1 ...... | "CanvasMorph" CanvasMorph := Morph new. CanvasMorph color: Color red; borderWidth: 5; etc.... "btnAction1" btnAction1 := CLButton new. btnAction1 text: 'Accept'; position: 10@10; roundedCorners: true. [...............] CanvasMorph addAllMorphs: #( btnAction1 btnAction2 [etc....] ) Is a dummy example, but the result code is more cleaned, and readable. And seems equal of hard.Another environments ( equal or much more competents than VW ) using that mechanism. My knowledge of Smalltalk and programming in general is very limited and poor. I want listen another ways of do.I want learn. But i have understand it before :D Regards -- View this message in context: http://n2.nabble.com/Re-feedback-on-CLFramework-tp3718474p3720135.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.