<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>------------------------------<br><br>Message: 7<br>Date: Sat, 23 Jun 2007 15:19:43 -0300
<br>From: Edgar J De Cleene &lt;<a href="mailto:edgardec2005@gmail.com">edgardec2005@gmail.com</a>&gt;<br>Subject: Re: [Newbies] SampleCode-ImageViewer<br>To: &quot;A friendly place to get answers to even the most basic questions
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;about&nbsp;&nbsp; Squeak.&quot; &lt;<a href="mailto:beginners@lists.squeakfoundation.org">beginners@lists.squeakfoundation.org</a>&gt;<br>Message-ID: &lt;<a href="mailto:149A61FD-CC76-40EF-8934-F16149CEDC28@gmail.com">149A61FD-CC76-40EF-8934-F16149CEDC28@gmail.com
</a>&gt;<br>Content-Type: text/plain; charset=&quot;us-ascii&quot;<br><br><br>On 23/06/2007, at 13:51, Wade Scholine wrote:<br><br>&gt; This is a question about the sample that was posted here last<br>&gt; October, at<br>
&gt;<br>&gt;&nbsp;&nbsp; <a href="http://lists.squeakfoundation.org/pipermail/beginners/2006-">http://lists.squeakfoundation.org/pipermail/beginners/2006-</a><br>&gt; October/001238.html<br>&gt;<br>&gt; I am not able to make it work. I was able to file in the code and
<br>&gt; start an instance from a workspace with &#39;SampleImageViewerMorph<br>&gt; new.&#39; I click on the &#39;dir&#39; button in the upper left hand corner of<br>&gt; the resulting Image Viewer Morph window, and that summons a
<br>&gt; directory browser UI that I can navigate to a directory that has<br>&gt; jpgs in it. ( e.g., &quot;C:\Documents and Settings\wades\My Documents<br>&gt; \My Pictures\rocks5&quot;). When I hit the &#39;accept&#39; button in the
<br>&gt; directory browser, it goes away and the path to the directory I<br>&gt; picked goes into the location bar or whatever you&#39;d call it in the<br>&gt; Image Viewer Morph window. A balloon comes up, saying &#39;When I&#39;m
<br>&gt; populated, you can click on a file to load it.&#39; Nothing happens.<br>&gt;<br>&gt; If I try hitting the little &#39;&gt;&#39; button by the location bar on the<br>&gt; Image View Morph window, I get an &quot;error out of bounds.&quot; If I debug
<br>&gt; that, I see that the error happens in SampleImageLoader&gt;&gt;loadImage:<br>&gt; it appears that the SampleImageLoader&#39;s collection members are empty.<br>&gt;<br>&gt; I tried making an instance of SampleImageLoader from the workspace,
<br>&gt; thinking I could manually initialize it and load the image list.<br>&gt;<br>&gt; a _ SampleImageLoader new.<br>&gt; a inspect.<br>&gt; (open a transcript)<br>&gt; a loadImagesBelow: &#39;c:\stuff\rpics&#39;<br>&gt; The transcript shows &quot;Entering DosFileDirectory on &#39;c:\stuff
<br>&gt; \rpics&#39;&quot; and then nothing else happens.<br>&gt;<br>&gt; Should any of this work?<br>&gt;<br>&gt; I am using:<br>&gt;<br>&gt; Squeak3.9<br>&gt; latest update: #7067<br>&gt; Current Change Set: Unnamed1<br>
&gt;&nbsp;&nbsp;OK<br>&gt;<br>&gt;<br>&gt; On WinXP SP2.<br>&gt; _______________________________________________<br>&gt; Beginners mailing list<br>&gt; <a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org
</a><br>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br><br>I&nbsp;&nbsp;file the code and could see is working.<br><br>SampleImageViewerMorph new on a Workspace
<br>Or select the class in the Sustem Browser and alt - click for &quot;more&quot;<br>and then &quot;sample instace&quot;<br><br>Could be enhanced to read all the picts formats and not only jpg.<br><br>Hints:<br>Go to Utilities &gt;&gt; graphicsFileSuffixes.
<br>Investigate &quot;senders&quot;<br>Have fun !</blockquote></div><br>I got SampleImageLoader&#39;s loadImagesBelow working: the problem was that it was trying to match files ending with .jpg or .jpeg, but my files had .JPG.
<br><br>I still am having problems with the package though. It appears that the SampleImageLoader is not getting hooked up with the Model correctly.<br><br>Are you using 3.9?<br><br>