<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 12/5/12 12:35 PM, Chris Cunnington
wrote:<br>
</div>
<blockquote cite="mid:50BF85EB.3030905@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 2012-12-05 11:41 AM, Bob Arning
wrote:<br>
</div>
<blockquote cite="mid:50BF7941.2080006@comcast.net" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<font face="Georgia">Something like<br>
=====================<br>
TheWorldMainDockingBar compile: 'welcomeWhatever<br>
<br>
^',(self contents printStringLimitedTo: 100000),' readStream
nextChunkText'<br>
=======================<br>
<br>
where self is your WriteStream<br>
<br>
Cheers,<br>
Bob<br>
<br>
</font>
<div class="moz-cite-prefix">On 12/5/12 10:41 AM, Frank Shearar
wrote:<br>
</div>
<blockquote
cite="mid:CAJbhyRF9HchdD7Vk61pUgjroSedRstiP5F6bkjPBCFk8prWhnA@mail.gmail.com"
type="cite">
<pre wrap="">On 4 December 2012 20:30, Frank Shearar <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:frank.shearar@gmail.com"><frank.shearar@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 4 December 2012 19:16, Colin Putney <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:colin@wiresong.com"><colin@wiresong.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Cleanup and simplification of Morphic text editing
</pre>
</blockquote>
<pre wrap="">That's exactly what I want: why the user should care.
</pre>
</blockquote>
<pre wrap="">Right. I now have a Workspace with the changelog all nicely marked up.
I need to turn that into something I can put in the ReleaseBuilder. I
thought I could just explore my way to the Text instance with my
stuff, and do something like (WriteStream on: String new)
nextChunkPutWithStyle: self). Which is fine, but I need to turn that
into something like TheWorldMainDockingBar >> #welcomeToSqueak43. What
am I missing?
frank
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
I think Frank is asking for help about a question I couldn't
answer. It's weird, because I found some solution to this when I
released 4.3. The question might be phrased: how do you file out
an instance?<br>
<br>
Andreas did something, and it's baffling. If you go to
TheWorldMainDockingBar>>#welcomeToSqueak43<br>
you see the text of the docking bar menu selection
Help>>WelcomeWorkspaces>>WelcomeToSqueak4.3. But
here's the twist, it contains the styles at the bottom: <br>
<br>
'Morphic<br>
- SMxMorphicProject now able to host a SimpleMorphic World<br>
- when present a SMxMorphicProject is made available in the World
menu<br>
!<br>
]style[(24 75 10 48 9 34 18 152 4 69 14 667 8 120 1 1 7
131)FBitstreamVeraSans#20.0,,bu,,bu,,bu,,bu,,bu,,bu,,bu,,bu,!'
readStream nextChunkText<br>
<br>
<br>
This string fed to TheWorldMainDockingBar spits out a fully
formatted Workspace. <br>
<br>
TheWorldMainDockingBar instance<br>
showWelcomeText: #welcomeToSqueak43<br>
label: 'Welcome to Squeak 4.3'<br>
in: (200 @ 200 extent: 500 @ 300)<br>
<br>
By hand, Frank has crafted a Welcome workspace with the
underlines, bold, and fonts to his taste. Now he wants to know
what to do to produce a string that can be saved as a method.<br>
</blockquote>
I think this does it:<br>
=====================<br>
TheWorldMainDockingBar compile: 'welcomeWhatever<br>
<br>
^',(((WriteStream on: String new) nextChunkPutWithStyle: aText)
contents printStringLimitedTo: 100000),' readStream nextChunkText'<br>
=====================<br>
<br>
when aText is the Text with your pretty text, you get:<br>
=================================<br>
welcomeWhatever<br>
<br>
^'Bob is bold!<br>
]style[(3 8)f5b,f1!' readStream nextChunkText<br>
===============================<br>
<br>
compiled into TheWorldMainDockingBar.<br>
<br>
Cheers,<br>
Bob<br>
<blockquote cite="mid:50BF85EB.3030905@gmail.com" type="cite"> <br>
Chris <br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>