<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi,<br>
</font></p>
<p><font size="4">I can't make sense of the situation.</font></p>
<p><font size="4">From the preference browser:</font></p>
<ul>
<li><font size="4">when visiting the #gui category, action map for
the drop down list is fine.</font></li>
<li><font size="4">when visiting the #programming category, action
map for the same drop down lists of other preferences is
corrupted (missing arguments).</font></li>
</ul>
<p><font size="4">The used code is the same when browsing these
categories.</font></p>
<p><font size="4">I commited the code in ui/tools/preferenceBrowser
repo with an inspect to observe this difference of behavior:</font></p>
<pre><font size="4">visitArrayPreference: aPref
| list listMorph |
aPref isTypeAClass ifTrue: [^ self visitArrayClassPreference: aPref].
listMorph _ DropDownListMorph
model: (list _ ListModel with: aPref type)
listGetter: #list
indexGetter: #listIndex
indexSetter: #listIndex: ::
autoDeselect: false;
setBalloonText: aPref description.
list listIndex: (aPref type indexOf: aPref value).
list when: #listSelectionChanged send: #changedList:for: to: self withArguments: {list. aPref}.
<b> list actionMap inspect.</b>
views at: aPref name capitalized put: listMorph
</font></pre>
<p><font size="4">aPref (missing in some actionMap) is a preference
instance, therefore stored in the PreferenceNG class.<br>
</font></p>
<p><font size="4">I tried to debug, actionmap build up code not easy
to understand and then actionMap is not corrupted when executing
step by step :-o <br>
</font></p>
<p><font size="4">Hilaire<br>
</font></p>
<p><font size="4"></font><br>
</p>
<div class="moz-cite-prefix">Le 21/05/2022 à 17:26, Juan Vuletich a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:628904A4.6020002@zoho.com">The
event system holds receiver and arguments weakly. If there is no
other reference to them, they get garbage collected.
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>