Andreas filedOut an instance? ( was Re: [squeak-dev] Proposed 4.4
Changelog)
Chris Cunnington
smalltalktelevision at gmail.com
Wed Dec 5 17:35:39 UTC 2012
On 2012-12-05 11:41 AM, Bob Arning wrote:
> Something like
> =====================
> TheWorldMainDockingBar compile: 'welcomeWhatever
>
> ^',(self contents printStringLimitedTo: 100000),' readStream
> nextChunkText'
> =======================
>
> where self is your WriteStream
>
> Cheers,
> Bob
>
> On 12/5/12 10:41 AM, Frank Shearar wrote:
>> On 4 December 2012 20:30, Frank Shearar<frank.shearar at gmail.com> wrote:
>>> On 4 December 2012 19:16, Colin Putney<colin at wiresong.com> wrote:
>>>> Cleanup and simplification of Morphic text editing
>>> That's exactly what I want: why the user should care.
>> 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
>>
>>
>
>
>
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?
Andreas did something, and it's baffling. If you go to
TheWorldMainDockingBar>>#welcomeToSqueak43
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:
'Morphic
- SMxMorphicProject now able to host a SimpleMorphic World
- when present a SMxMorphicProject is made available in the World menu
!
]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
This string fed to TheWorldMainDockingBar spits out a fully formatted
Workspace.
TheWorldMainDockingBar instance
showWelcomeText: #welcomeToSqueak43
label: 'Welcome to Squeak 4.3'
in: (200 @ 200 extent: 500 @ 300)
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.
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20121205/bc04bbd9/attachment.htm
More information about the Squeak-dev
mailing list
|