(newbee) Problem with PluggableListMorph

karl karl.ramberg at chello.se
Wed Nov 9 20:04:57 UTC 2005


Marcus Pedersén wrote:

> Hi!
> I have a problem with a PluggableListMorph. If I remove an item in my 
> list the GUI is not updated and still shows the removed item.
> Perhaps I'm using the wrong methods?
> a PluggableListMorph (pLM).
>  
> | collection |
> collection := pLM getList.
> collection copyWithoutIndex: (pLM getCurrentSelectionIndex).
> pLM list: collection.
>  
> If I inspectIt (the code) I see that the removed item is gone in the 
> list and if I inspect on the GUI I see that the item is gone as well.
> But it is still present in the visual list(GUI). For some reason the 
> GUI is not updated.
> What am I doing wrong?
>  
> Many thanks in advance!
> Marcus
>
>------------------------------------------------------------------------
>
>
>  
>
It needs to be told to update it self, like 'self changed' or something 
similar.
Karl




More information about the Squeak-dev mailing list