<div dir="ltr">Hi Marcel, Hi All,<div><br></div><div>    at one point I had implemented custom window colors for the VM simulator window thusly:</div><div><br></div><div>InterpreterPrimitives class>>initialize<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>"Initialize the window color.  This is probably Squeak-specific, so..."</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">     </span>[Preferences</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span>setWindowColorFor: #cogVirtualMachineSimulatorWindowColor</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span>to: (Color colorFrom: InterpreterPrimitives windowColorSpecification brightColor)]</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">             </span>on: Error</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>do: [:ex| Transcript show: 'Failed to set window color preference in ', thisContext method methodReference asString]</div><div><br></div><div><div>SimulatorMorphicModel class>>registerWindowColor</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>(Preferences windowColorFor: self name) = Color white</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">          </span>ifTrue: [ Preferences setWindowColorFor: self name to: (Color colorFrom: self windowColorSpecification brightColor) ].</div></div><div><br></div><div>This approach is now deprecated, causing the load script to protest.  But the deprecation message isn't helpful.  The setter setWindowColorFor:to: just says the method is deprecated, not suggesting any alternative.  The getter Preferences class>>#windowColorFor: just says 'Use Model >> #customWindowColor', but the method isn't implemented in any class.</div><div><br></div><div>Where's an example of the right way to do it?  Could the deprecation warnings be more informative?</div><div><br></div><div>thanks</div><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>