Model.st
changeset 238 a179b5d6152e
parent 223 b65dc250db8d
child 318 097d70e8163f
--- a/Model.st	Thu May 02 11:57:36 1996 +0200
+++ b/Model.st	Thu May 02 15:28:28 1996 +0200
@@ -35,22 +35,33 @@
 
 documentation
 "
-    Models are things that are presented in views. Instances keep track of 
-    which views are dependent of them and inform them of any changes.
-    Actually the Model class is not really needed; since the dependency
-    mechanism is inherited by Object, you can take any object as a model.
-    However, instances of Model (and subclasses) keep the dependents locally
-    in an instance variable; thus speeding up access a bit.
+    Models are things which represent information models, i.e. something
+    which holds the data for user interface components and on which these operate.
+    Basically, instances keep track of which components depend on them and 
+    inform the dependents of any changes.
+
+    The Model class itself is abstract and not too useful, see subclasses,
+    especially, ValueHolder and SelectionInList.
+
+    Notice:
+      Actually the Model class is not really needed; since the dependency
+      mechanism is inherited by Object, you can take any object as a model.
+      However, instances of Model (and subclasses) keep the dependents locally
+      in an instance variable; thus speeding up access a bit.
 
     [Instance variables:]
-        dependents      Collection      those objects which depend on me.
-                                        To save some storage, the dependent is
-                                        kept directly here, IFF there os only one.
-                                        Otherwise, a collection of dependents is
-                                        held here.
+        dependents      <Collection>    those objects which depend on me.
+                                        To save some storage, a single dependent 
+                                        is kept directly here.
+                                        Otherwise, if there are multiple dependents,
+                                        a collection of dependents is held here.
 
     [author:]
         Claus Gittinger
+
+    [see also:]
+        ValueHolder SelectionInList
+        ( introduction to view programming :html: programming/viewintro.html#MVC )
 "
 ! !
 
@@ -214,22 +225,8 @@
     "Created: 19.4.1996 / 12:19:40 / cg"
 ! !
 
-!Model methodsFor:'drawing'!
-
-displayOn:aGraphicsContext
-    "display myself in aGraphicsContext"
-
-    ^ self subclassResponsibility
-!
-
-displayOn:aGraphicsContext clippingBox:aRectangle
-    "display a part of me in aGraphicsContext"
-
-    ^ self subclassResponsibility
-! !
-
 !Model class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/Model.st,v 1.23 1996-04-25 16:43:38 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/Model.st,v 1.24 1996-05-02 13:28:28 cg Exp $'
 ! !