Thank a lot for directing me toward SpFilteringListPresenter.

I think I found a bug in SpFilteringSelectableListPresenter. While using an 
SpFilteringSelectableListPresenter, if you press ctrl-a, every item in the list 
will get selected. Then, if you deselect a few items and press ctrl-a again, 
this time nothing happens. However, if you scroll the list, all the items are 
suddenly selected again.


This happens because the block that get invoked when ctrl-a is pressed doesn't 
refresh the presenter. When I changed that block from [ self activateAll ] to [ 
self activateAll. listPresenter refresh ], the bug disappeared.



________________________________
De : Esteban Lorenzano <esteba...@netc.eu>
Envoyé : 25 juillet 2021 02:28:51
À : Any question about pharo is welcome
Cc : pharo-users@lists.pharo.org
Objet : [Pharo-users] Re: Error in Pharo 9's Spec UI Framework Demo

Hi Tau,

The filter that was bundled with the list components is deprecated and should 
not be used.
Instead, we provide another component with that functionality: 
SpFilteringListPresenter.

Take a loot there and its examples.

Esteban

On Jul 25 2021, at 5:52 am, tau <t...@cedalion.info> wrote:

In the Spec2 examples included with Pharo9, in the example for SpListPresenter, 
when I try to input text in the list filter, I get an error: the debug window 
says: "Instance of OrderedCollection did not understand #hasElementAt:". The 
example works correctly in Pharo8.

Is there a workaround to make the example work?

Reply via email to