[comp.lang.smalltalk] Smalltalk/V 286 Fields and FieldPanes

yon@apollo.HP.COM (David Yon) (01/16/90)

	Once again in my hackings with Smalltalk/V 286, I've got
instances that just won't die.

	I'm defining an object class called "Person", which has 
several instance variables: "Name", "Address", and so on.  I've
defined a method called "edit" which pops up a TopPane, containing
a FieldPane with several fields in it, each containing the value 
of the various instance variables in "Person".

	There are two problems.  First of all, when you click the
close icon, the window disappears, but the instance of the TopPane
(and the Fields and FieldPanes, etc) does not go away.  Evaluating
"TopPane allInstances" shows that.  Even worse, the value of the
instance variables in the Person object are not updated.

	Now, I know I can force the panes to go away with 
"Scheduler reinitialize", but that is not the answer.  I have a
similar object class which has an edit method which works *correctly*
when the close icon is clicked.  Near as I can tell, the only dif-
ference between the two edit classes is that one uses Field objects
(the one that's broken) and the other doesn't.

	Has anyone had any experiences like this when using the
Field and FieldPane classes?  These are from the "Goodies #2"
package.

	Thanks in advance.

David Yon