<div dir="ltr">I don&#39;t/didn&#39;t think that #initialize was called on a package load unless the class was a new class - so that it wouldn&#39;t overwrite accumulated state since the initial load.  Isn&#39;t that still the case?<div>
<br></div><div>worth testing in any case.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 29, 2013 at 8:45 AM, Frank Shearar <span dir="ltr">&lt;<a href="mailto:frank.shearar@gmail.com" target="_blank">frank.shearar@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My Inbox submission opted for an explicit source-based removal of the<br>
preference, in Preferences class &gt;&gt; #initialize. (Inspired by Colin<br>
Putney&#39;s method of uninstalling/reinstalling Environments, but don&#39;t<br>
blame him for my work!)<br>
<span class="HOEnZb"><font color="#888888"><br>
frank<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 29 July 2013 16:19, Chris Cunningham &lt;<a href="mailto:cunningham.cb@gmail.com">cunningham.cb@gmail.com</a>&gt; wrote:<br>
&gt; Would this post-script need to be in a configuration file?  One of those<br>
&gt; packages that is guaranteed to load?  Otherwise, once you have a second<br>
&gt; version of that package,the post-script won&#39;t run, correct?<br>
&gt;<br>
&gt; How does Trunk and Post/Pre scripts work anyways?  Mainly just curious.<br>
&gt;<br>
&gt; -Chris (one of the other ones)<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Jul 27, 2013 at 12:48 PM, Frank Shearar &lt;<a href="mailto:frank.shearar@gmail.com">frank.shearar@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Yes, it&#39;s more the &quot;where should I put the #removeKey: when I remove<br>
&gt;&gt; the preference&quot; than &quot;hi I am a newbie and don&#39;t know the Dictionary<br>
&gt;&gt; API&quot; :)<br>
&gt;&gt;<br>
&gt;&gt; Yes, ok, ah postscript could do the trick. I can&#39;t think of a better<br>
&gt;&gt; way of doing it, and it is an inherently state-changing thing.<br>
&gt;&gt;<br>
&gt;&gt; frank<br>
&gt;&gt;<br>
&gt;&gt; On 27 July 2013 19:28, Chris Muller &lt;<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; I don&#39;t mean to be a smart-alec but...   removeKey: ?  :)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; No, seriously, are you asking where to put the removeKey:?  Perhaps in<br>
&gt;&gt; &gt; the MC post-script of that package-version?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, Jul 26, 2013 at 12:56 PM, Frank Shearar<br>
&gt;&gt; &gt; &lt;<a href="mailto:frank.shearar@gmail.com">frank.shearar@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; As part of the MonticellConfiguration &lt;--&gt; System untangling, I&#39;m<br>
&gt;&gt; &gt;&gt; converting the #updateFromServerAtStartup preference to a<br>
&gt;&gt; &gt;&gt; PragmaPreference. Making the new preference is easy. But the<br>
&gt;&gt; &gt;&gt; preference itself is stored inside Preferences&#39; vast Dictionary of<br>
&gt;&gt; &gt;&gt; preferences. It seems lame to just leave the key there. So what&#39;s the<br>
&gt;&gt; &gt;&gt; proper way to remove the old preference?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; frank<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>