Date: Wed, 27 Jun 2007 16:35:27 +0100 From: "Michael Davies" mykdavies+squeak@gmail.com Subject: Re: [Newbies] SampleCode-ImageViewer To: "A friendly place to get answers to even the most basic questions about Squeak." beginners@lists.squeakfoundation.org Message-ID: ef9f0b4e0706270835u7c061ac1nc456db47282b1e39@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed
(re-sent as my original didn't get through)
Hi Wade, Edgar,
I wrote that sample application, so I'm sorry you had problems getting it working. As you worked out, it's fussy about the (number, and case of) file extensions it recognises. I've fixed those issues and uploaded a new version, as I'm sure that this will have caused other people problems too.
Edgar - you mentioned that you'd have done things differently. I started writing a more complex application, but realised that image handling on my Mac wasn't very fast, so I stripped the application back down, but thought it was useful to document what I'd produced as I had a lot of trouble getting to a core SystemWindow-based application. Are you saying that (i) using SystemWindow is not the approach you'd have taken, or (ii) that's not how you'd have implemented a SystemWindow-based application? (or both!).
I'd appreciate any comments you have, and may add them to the application as warnings to anyone who picks it up in future.
I found that it worked OK after I arranged for the file extension check to look of #JPG and #JPEG.
The other problems I was having with it were because I was not hitting enter on the PluggableTextMorph before clicking on the goBack and goNext buttons. I'm not sure why I didn't notice the comments and balloon help about pressing enter in the PluggableTextMorph.
I haven't had time to look at it more deeply since. I would have thought it would be nice if the goNext/Back buttons cause the directory field to accept if it hadn't already, I think this would be more in keeping with the behavior of modern GUIs. I didn't see an obvious way to make that happen.
... I would have thought it would be nice if the goNext/Back buttons cause the directory field to accept if it hadn't already, I think this would be more in keeping with the behavior of modern GUIs. I didn't see an obvious way to make that happen.
I see what you mean - I think I ended up creating an interface that's as 'opaque' as some of the controls that have confused me in the past. The first time I tried to using the refactoring Selector Editor I had no idea what the hell I was supposed to do with this mysterious window!
I'll have a play around...
Cheers, Michael
beginners@lists.squeakfoundation.org