Lost in Squeak world....

Rick ricardosbc at netwave.com.br
Wed Feb 14 02:02:27 UTC 2001


Ned Konz wrote:

> Well, a self changed: #editar should update the pane. Have you tried to trace
> through the code with the debugger to see what's being called?
>

Hi, Ned!

Since the code seems to be correct, the problem must be elsewhere.
-> Debbbuggggggingggg...
    I made a little trick to track what happens since I evaluate 'Programador new
open' til a first click on some file name. Here is what I did:
1. in the fileListIndx: method I added  "Editada add: 'indx' "
2. in the fileString: method I added "Editada add: 'string' "
3. in the editar method I added "Editada add: 'editar' "
4. I opened the Programador window
5. I clicked once on a file name
6. I closed the window
7. I inspected the content of Editada and it was:
    an OrderedCollection('Lista Nova' 'editar' 'Programador.image' 'indx'
'editar')

What this shows?
a. fileString: is not being called, so I can forget it
b. when the window opens, editar method is called, and editionView displays
------------
'Lista Nova'
'editar'
------------
c. when I click, the file name ('Programador.image') and 'indx' are added to the
OrderedCollection, and then editar *is called* again because the changed: line,
and 'editar' is added
-> At this point, editionView remais unchanged at screen, and I have two
hipotesis:
*first - the pane is somehow being freezed in first display and not accepting the
new content;
*second - the ^Editada is returning the new content to nowhere instead of the
correct pane

What you think about ?

> --
> Ned Konz
> currently: Stanwood, WA
> email:     ned at bike-nomad.com
> homepage:  http://bike-nomad.com





More information about the Squeak-dev mailing list