Hello list:

I've read *"Squeak by Example"* and looked at some Morphic tutorials and
example Morphs.
I still don't understand how to organize my code with Morphic, =(

1) How should I separate the model from the graphical representation?


Object  subclass: #Person
   instanceVariableNames: 'name address email'

Morph sublcass: #PersonMorph
   instanceVariableNames: 'person'

The morph can then show and update the model when changed.

2) What happens if the model is changed by another class. How does the morph
gets notified?


What is the preferred approach?
Thanks in advance!
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to