<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">When saved then loaded, the preferences installed
with event listener lost the event listener:</font></p>
<p><font size="4" face="monospace" color="#97082d">PreferenceNG
initialize.<br>
</font><font size="4" face="monospace" color="#97082d">(PreferenceNG
instanceAt: #guiElementsSize ) actionMap<br>
</font><font size="4" face="monospace" color="#97082d">==> an
IdentityDictionary(#preferenceChanged->WeakMessageSend(#defaultFontSize:
-> PreferenceNG) ) </font></p>
<p><font size="4"><font face="monospace" color="#97082d">PreferenceNG
saveAllTo: '/tmp/pref' asFileEntry.<br>
PreferenceNG loadFrom: '/tmp/pref' asFileEntry.<br>
<br>
(PreferenceNG instanceAt: #guiElementsSize ) actionMap <br>
==> nil </font><br>
</font></p>
<p><font size="4">To save all the preference, I use a naive:</font></p>
<p><font size="4"><font face="monospace" color="#97082d">PreferenceNG>>saveAllTo:
aFileEntry<br>
" Save all the preferences to a file "<br>
SmartRefStream dumpOnFile: aFileEntry object:
ThePreferences</font><br>
</font></p>
<p><font size="4">To load, the counter part:</font></p>
<p><font size="4"><font face="monospace" color="#97082d">PreferenceNG>>loadFrom:
aFileEntry<br>
" Load all preferences from file, it replaces entirely the
existing preferences "<br>
ThePreferences _ SmartRefStream restoreFromFile:
aFileEntry</font><br>
</font></p>
<p>This is not surprise as the actionMap is stored in another
object, the class ActiveModel. <br>
</p>
<p>I have some ideas to solve the problem but I am interested to
read other ideas.</p>
<p>Thanks</p>
<p>Hilaire<br>
</p>
<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>