Re: [Pharo-users] How can my Morph reflect changes in the object it displays?
Martin Walk asked:
How to bind a LabelMorph/TextMorph to a variable so that the Morph reflects changes of the variable?
That is a very low-level question. Do you just want to know, or do you want to use it? When building UI's in Pharo, the first question should probably be: can I get away with building it in Glamour. That is a high-level UI toolkit specialized in creating browsers. If you can, it is much less work. Stephan Eggermont
Stephan Eggermont wrote
How to bind a LabelMorph/TextMorph to a variable so that the Morph reflects changes of the variable?
That is a very low-level question. Do you just want to know, or do you want to use it? When building UI's in Pharo, the first question should probably be: can I get away with building it in Glamour. That is a high-level UI toolkit specialized in creating browsers. If you can, it is much less work.
I am interested in both questions. I want to just use it - but of course i am interested in knowing different possibilities and how they work and why to prefer one to the other. I have not looked at Glamour yet - and i am a bit reluctant to add an extra layer, but i will give it a try. But btw - isn't it a very common problem to keep for example different views on the same object in sync? For example i want to provide a slider and a textfield for a numerical value. (I probably hoped something like Cocoa Bindings would exist.) -- View this message in context: http://forum.world.st/How-can-my-Morph-reflect-changes-in-the-object-it-disp... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (2)
-
MartinW -
Stephan Eggermont