(newbee) Problem with PluggableListMorph

Chris Muller chris at funkyobjects.org
Thu Nov 10 18:02:49 UTC 2005


I'm not at a computer with Squeak at the moment, but my first notion about the
problem

> | collection |
> collection := pLM getList.
> collection copyWithoutIndex: (pLM getCurrentSelectionIndex).
> pLM list: collection.

is that the copy of the collection without the specified index is being thrown
away; i.e., not assigned.

You might try:

pLM list: (pLM getList copyWithoutIndex: pLM getCurrentSelectionIndex)

 - Chris

> Message: 11
> Date: Wed, 9 Nov 2005 20:56:46 +0100
> From: Marcus Peders?n <marcus.pedersen at comhem.se>
> Subject: (newbee) Problem with PluggableListMorph
> To: <squeak-dev at lists.squeakfoundation.org>
> Message-ID: <001701c5e567$b725d7f0$3825fd53 at marcus>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> 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




More information about the Squeak-dev mailing list