<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Georgia">The "...etc..." part is a limitation in the
implementation of #printString, which get called by #asString here.
The goal is *not* to put huge amounts of data into the Transcript
or other simple UI elements where it might be unwieldy. If you
really want the full thing printed out, use<br>
<br>
myBigOrderedCollection printStringLimitedTo: 99999999<br>
<br>
or<br>
</font><br>
<font face="Georgia"><font face="Georgia">myBigOrderedCollection fullPrintString<br>
<br>
</font>Cheers,<br>
Bob<br>
<br>
</font>
<div class="moz-cite-prefix">On 8/31/13 4:49 AM, Squeak List wrote:<br>
</div>
<blockquote
cite="mid:1377938942.31680.YahooMailNeo@web160806.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:12pt">
<div>Hello,</div>
<div><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">I have an OrderedCollection with 24,576
elements.</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"> <br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">A bunch of musical notes basically: each
of the 24,576 elements is like: <br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">#('eo6' 0.25 500)<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">for example.<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">Goal: I would like to turn that *entire*
OrderedCollection into a single MIDI file. <br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">However, there seems to be some sort of
size limitation that I do not see how to get around.</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">1) Even before getting to the MIDI part,
I tried:</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">FileStream fileNamed: '1-24576.rtf'<br>
do: [:stream | stream nextPutAll: ((oc copyFrom: 1 to:24576)
asString)].</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">which creates a nice file of 48.8KB size.</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">And opening the file, it ends with: <br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">
</div>
<pre> #('c#o6' 0.25 500) #('d...etc...</pre>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">which is not what I expected.</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">2) If I do:</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">FileStream fileNamed: '1-2729.rtf'<br>
do: [:stream | stream nextPutAll: ((oc copyFrom: 1 to:2729)
asString)].</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">it works fine: ending tidily with the
expected: </div>
<pre>#('c#o6' 0.25 500))</pre>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">3) But,</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">FileStream fileNamed: '1-2730.rtf'<br>
do: [:stream | stream nextPutAll: ((oc copyFrom: 1 to:2730)
asString)].</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">is where this starts:<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">
</div>
<pre> #('c#o6' 0.25 500) #('d...etc...
</pre>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">This exact same problem happens when
making MIDI files: there seems to be a size limitation around
48.8KB.</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">Aside from MIDI, is FileStream just the
wrong class to use for anything larger than creating a 48.8kb
text file (.txt or .rtf)? Or how can I get around this
restriction?</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">Any suggestions are most welcome. <br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">Thanks,</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">ken</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">Windows 7 - 64 bit<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">Squeak4.4<br>
latest update: #12319<br>
Current Change Set: Unnamed<br>
Image format 6505 (32 bit)</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;">Squeak.exe<br>
Croquet Closure Cog VM [CoInterpreter VMMaker.oscog-eem.331]<br>
Win32 built on Aug 22 2013 10:20:54 Compiler: 3.4.4 (cygming
special, gdc 0.12, using dmd 0.125)<br>
platform sources revision VM: r2776 <br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
tahoma,new york,times,serif; background-color: transparent;
font-style: normal;"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>