[Pharo-dev] [Spec] whenSelectedItemsChanged: on TreeModel

Pharo4Stef pharo4Stef at free.fr
Wed Apr 2 16:46:51 EDT 2014


> I made a plugin to spy on the NaytimusAnnouncer and in fact there is a storm of announcements flying around all the time.
> 

arghhhhhhhhhh
Thanks for letting us knowing.
> And they do not carry the expected payload ( nil instead of the method for example)
> 
> The plugin is in Smalltallhub in philippeback , HOExtras
> 
> I'll do a screencast to show you.
> 
> Phil
> 
> Le 2 avr. 2014 13:30, "Martin Dias" <tinchodias at gmail.com> a écrit :
> Hi,
> 
> I still can reproduce this issue in Pharo 30807 (last image). I'm trying to workaround it with some problems.
> 
> I ignore if this is already reported in fogbugs. Steps to reproduce:
> 
> a) do it:
> 
> 	TreeModel new
> 		roots: (1 to: 2);
> 		whenSelectedItemsChanged: [ :items |  self logCr: items ];
> 		openWithSpec.
> 
> 
> => in Transcript I see:
> 
> b) during initial do it:
> 
> 	#()
> 
> c) after a click on 2:
> 
> 	#()
> 	an OrderedCollection(2)
> 
> d) after a click on 1:
> 
> 	an OrderedCollection(2)
> 	an OrderedCollection(2)
> 	an OrderedCollection(1)
> 
> 
> Cheers,
> MArtín
> 
> 
> 
> On Wed, Dec 11, 2013 at 6:10 PM, Benjamin <Benjamin.VanRyseghem.Pharo at gmail.com> wrote:
> As I said to Martin, I will investigate why, but it’s a bit tricky
> Must be some issue in MorphTreeMorph I introduced recently
> 
> Ben
> 
> On 11 Dec 2013, at 16:46, Roberto Minelli <roberto.minelli at usi.ch> wrote:
> 
>> Hi,
>> 
>> I am experiencing problems with #whenSelectedItemsChanged: on a TreeModel.
>> 
>> In particular, the block (i.e., argument of #whenSelectedItemsChanged: gets randomly executed a couple of times (3/4) the second time that the selection happens. The first time is fine. It looks like the registration of the “event” or “announcement” is done multiple times.
>> 
>> Any hint?
>> 
>> Cheers,
>> R
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20140402/c3c1edd5/attachment-0002.html>


More information about the Pharo-dev mailing list