<div dir="ltr">I don't/didn't think that #initialize was called on a package load unless the class was a new class - so that it wouldn't overwrite accumulated state since the initial load. Isn'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"><<a href="mailto:frank.shearar@gmail.com" target="_blank">frank.shearar@gmail.com</a>></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 >> #initialize. (Inspired by Colin<br>
Putney's method of uninstalling/reinstalling Environments, but don'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 <<a href="mailto:cunningham.cb@gmail.com">cunningham.cb@gmail.com</a>> wrote:<br>
> Would this post-script need to be in a configuration file? One of those<br>
> packages that is guaranteed to load? Otherwise, once you have a second<br>
> version of that package,the post-script won't run, correct?<br>
><br>
> How does Trunk and Post/Pre scripts work anyways? Mainly just curious.<br>
><br>
> -Chris (one of the other ones)<br>
><br>
><br>
> On Sat, Jul 27, 2013 at 12:48 PM, Frank Shearar <<a href="mailto:frank.shearar@gmail.com">frank.shearar@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Yes, it's more the "where should I put the #removeKey: when I remove<br>
>> the preference" than "hi I am a newbie and don't know the Dictionary<br>
>> API" :)<br>
>><br>
>> Yes, ok, ah postscript could do the trick. I can't think of a better<br>
>> way of doing it, and it is an inherently state-changing thing.<br>
>><br>
>> frank<br>
>><br>
>> On 27 July 2013 19:28, Chris Muller <<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>> wrote:<br>
>> > I don't mean to be a smart-alec but... removeKey: ? :)<br>
>> ><br>
>> > No, seriously, are you asking where to put the removeKey:? Perhaps in<br>
>> > the MC post-script of that package-version?<br>
>> ><br>
>> > On Fri, Jul 26, 2013 at 12:56 PM, Frank Shearar<br>
>> > <<a href="mailto:frank.shearar@gmail.com">frank.shearar@gmail.com</a>> wrote:<br>
>> >> As part of the MonticellConfiguration <--> System untangling, I'm<br>
>> >> converting the #updateFromServerAtStartup preference to a<br>
>> >> PragmaPreference. Making the new preference is easy. But the<br>
>> >> preference itself is stored inside Preferences' vast Dictionary of<br>
>> >> preferences. It seems lame to just leave the key there. So what's the<br>
>> >> proper way to remove the old preference?<br>
>> >><br>
>> >> frank<br>
>> >><br>
>> ><br>
>><br>
><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>