Interesting. While digging around trying to find out what was going on, I did stumble across PragmaPreference by printing:<div><br></div><div>Preferences allPreferenceObjects<div><br></div><div>... and searching the resultant text for &#39;Editors&#39; finding &quot;a PragmaPreference#&#39;Use New Editors&#39; nil#&#39;Use New Editors&#39;&quot; in the output. </div>
<div><br></div><div>But the class comment for PragmaPreference:</div><div><br></div><div>&quot;Differs from superclass by redirecting all queries to preference provider.&quot;</div><div><br></div><div>... didn&#39;t help me any, because I didn&#39;t know what was meant by preference provider. For want of Cmd-Shift-E (thank you! awesome!) I just browsed the protocol a bit, looked at the superclass, gave up and cried &#39;halp!&#39;</div>
<div><br></div><div>Maybe I would have grokked this right away had I a better (read: passing) grasp of the superclass, but PragmaPreference feels like it wants to do something of architectural significance. Maybe move preferences off to the actual objects where the behavior is specified, instead of a big pile, perhaps?</div>
<div><br></div><div> - Ron, curiously</div><div><br><div class="gmail_quote">On Sat, Aug 22, 2009 at 9:50 PM, Andreas Raab <span dir="ltr">&lt;<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Ronald Spengler wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How can I talk to preferences that have spaces in them? I&#39;m trying to add a line to my image configuration script that enables the Cuis editors automatically.<br>
</blockquote>
<br></div>
Cmd-Shift-E (Alt-Shift-E) is your friend. Select &quot;Use New Editors&quot;, press Cmd-Shift-E and the only hit should be TextMorph class&gt;&gt;useNewEditors with its companion accessor #useNewEditors:.<br>
<br>
(what you are seeing here is a pragma preference which shouldn&#39;t be manipulated by its user-visible description)<br>
<br>
Cheers,<br><font color="#888888">
  - Andreas<br>
<br>
</font><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
My usual strategy of:<br>
<br>
Preferences<br>
setPreference: #swapMouseButtons toValue: true<br>
<br>
... doesn&#39;t seem to work.<br>
<br>
When I print:<br>
<br>
Preferences setPreference: #&#39;Use New Editors&#39; toValue: true;<br>
valueOfPreference: #&#39;Use New Editors&#39;<br>
<br>
... I get back nil.<br>
<br>
Failing that, I also tried:<br>
<br>
Preferences togglePreference: #&#39;Use New Editors&#39;<br>
<br>
... which pops a MNU, so in general I think there&#39;s something that I&#39;m failing to understand.<br>
<br>
Any help is much appreciated.<br>
<br>
 - Ron<br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote></div><br></div></div>