<div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; the problem here is that HTTPSocket httpGet: &#39;&#39; return<br>
&gt; a RWBinaryOrTextStream.<br>
&gt; To get the string, you need to send the message contents to the stream.<br>
&gt; (HTTPSocket httpGet: &#39;json url&#39;) contents<br>
&gt;<br>
<br>
</div>thanks!<br>
<br>
just getting back to this..<br>
<br>
my question is.. how do i know what part of the stream to look at? as<br>
in, how would i know that contents is the part i am interested in?<br>
<br>
thanks!<br>
<br>
oh.. and i am reading the docs about streams again...<br>
<br>
thanks again!<br>
<font color="#888888"><br>
<br></font></blockquote><div><br></div><div>Not sure I understand... :)</div><div><br></div><div>A stream encapsulates a collection and provide facilities to navigate forward, backward, etc... (strings are collection - direct string manipulation aren&#39;t efficient)...  So you use a stream to manipulate efficiently your string, and to get the string back (or whatever collection that was associated to the string), you send the message #contents.</div>
<div><br></div><div>If you se the class comment of Stream </div><div>&quot;I am an abstract class that represents an accessor for a sequence of objects. This sequence is referred to as my &quot;contents&quot;.&quot;</div>
<div><br></div><div><br></div><div>hth, </div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888">
--<br>
</font><div><div></div><div class="h5"><br>
----<br>
peace,<br>
sergio<br>
photographer, journalist, visionary<br>
<br>
<a href="http://www.coffee-black.com" target="_blank">http://www.coffee-black.com</a><br>
<a href="http://www.painlessfrugality.com" target="_blank">http://www.painlessfrugality.com</a><br>
<a href="http://www.twitter.com/sergio_101" target="_blank">http://www.twitter.com/sergio_101</a><br>
<a href="http://www.facebook.com/sergio101" target="_blank">http://www.facebook.com/sergio101</a><br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Cédrick <br>