<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 <<a href="mailto:edgardec2005@gmail.com">edgardec2005@gmail.com</a>><br>Subject: Re: [Newbies] SampleCode-ImageViewer<br>To: "A friendly place to get answers to even the most basic questions
<br> about Squeak." <<a href="mailto:beginners@lists.squeakfoundation.org">beginners@lists.squeakfoundation.org</a>><br>Message-ID: <<a href="mailto:149A61FD-CC76-40EF-8934-F16149CEDC28@gmail.com">149A61FD-CC76-40EF-8934-F16149CEDC28@gmail.com
</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br><br>On 23/06/2007, at 13:51, Wade Scholine wrote:<br><br>> This is a question about the sample that was posted here last<br>> October, at<br>
><br>> <a href="http://lists.squeakfoundation.org/pipermail/beginners/2006-">http://lists.squeakfoundation.org/pipermail/beginners/2006-</a><br>> October/001238.html<br>><br>> I am not able to make it work. I was able to file in the code and
<br>> start an instance from a workspace with 'SampleImageViewerMorph<br>> new.' I click on the 'dir' button in the upper left hand corner of<br>> the resulting Image Viewer Morph window, and that summons a
<br>> directory browser UI that I can navigate to a directory that has<br>> jpgs in it. ( e.g., "C:\Documents and Settings\wades\My Documents<br>> \My Pictures\rocks5"). When I hit the 'accept' button in the
<br>> directory browser, it goes away and the path to the directory I<br>> picked goes into the location bar or whatever you'd call it in the<br>> Image Viewer Morph window. A balloon comes up, saying 'When I'm
<br>> populated, you can click on a file to load it.' Nothing happens.<br>><br>> If I try hitting the little '>' button by the location bar on the<br>> Image View Morph window, I get an "error out of bounds." If I debug
<br>> that, I see that the error happens in SampleImageLoader>>loadImage:<br>> it appears that the SampleImageLoader's collection members are empty.<br>><br>> I tried making an instance of SampleImageLoader from the workspace,
<br>> thinking I could manually initialize it and load the image list.<br>><br>> a _ SampleImageLoader new.<br>> a inspect.<br>> (open a transcript)<br>> a loadImagesBelow: 'c:\stuff\rpics'<br>> The transcript shows "Entering DosFileDirectory on 'c:\stuff
<br>> \rpics'" and then nothing else happens.<br>><br>> Should any of this work?<br>><br>> I am using:<br>><br>> Squeak3.9<br>> latest update: #7067<br>> Current Change Set: Unnamed1<br>
> OK<br>><br>><br>> On WinXP SP2.<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">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br><br>I 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 "more"<br>and then "sample instace"<br><br>Could be enhanced to read all the picts formats and not only jpg.<br><br>Hints:<br>Go to Utilities >> graphicsFileSuffixes.
<br>Investigate "senders"<br>Have fun !</blockquote></div><br>I got SampleImageLoader'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>