| I'm changing the date to April 20. Mark Guzdial |
| There's an example in the book, p. 240 Mark Guzdial |
| You're trying to put a BookMorph inside an AlignmentMorph? Why? The problem that you're probably facing is that the size of the BookMorph is dependent on the size of the page containing it. A BookMorph can actually be many different sizes if you have different size pages in the BookMorph. Mark Guzdial |
| Several things to explore. Have you tried switching the ListMorphs to use inboard scrollbars so that they don't pop out? You want to see class ScrollPane and message rectractableOrNot. Have you tried locking your textMorph? You could also create a subclass of TextMorph that, upon a step, always sets its bounds to what you want it to be. Mark Guzdial |
| 24 hours would make that much difference? Over a two week period? When the assignment has been available all term? Mark Guzdial |
| We can discuss it in class today. I'm willing to consider an extension until 1:00 pm on Friday. Mark Guzdial |
| We hacked into the code that parses jpegs and attempted to "ignore" that type of marker (by expanding the list of already "okToIgnore" tags), but this caused even more errors reading those jpegs. Of course, updating the jpeg parser to handle this tag correctly would fix it. Has this been done already in the sources included with 2.8? Are we on the wrong track? Should we simply trap the error and not show images that fail to load properly with the current image loader (this would be the easiest solution, I think, but it would prevent MANY MANY images from being available in the postscript version of the newspaper)? Matthew Wolenetz of Squeak Times |
| There will always be some images that you can't deal with – even if it's not a case of Squeak being unable to render it (e.g., bad uploads). You need to trap for that error and deal with it. Yes, it may mean that many images are not available – that can happen to a real newspaper, too! But you must still have SOME image. Mark Guzdial |
| Yup – check out the class Exception. Also, look at ifError: as a way of catching all kinds of errors and exceptions. Mark Guzdial |
| You certainly can. I'll adjust the grading criteria to make sure that this gets marked down if you do it that way. Mark Guzdial |
| No, not all headlines have to be on the front page. Only one article HAS to be there, but multiple columns need to be there, and an image. Mark Guzdial |
| Sure, but I'd put a caption "Story on p. 4" for usability sakes. Mark Guzdial |
| Yes. Mark Guzdial |
| Update: We solved our problem. openInWorld, extent, addMorph, and position: weren't being done properly and in the right sequence when setting up the images. |
| Yeah, squeak is a pain about getting things in exactly the right order, i ended up just trying all the permutations. The trick you appear to be groping for is to add the Image and TextMorph to a container. Just make sure that the Image is on top, since a TextMorph only flows around Morphs that are stacked above it. |
| see the "string:fontName:size:" method |