Michael Guenter wrote:
Hi,
I have been working through the tutorial but when I try to "accept" the following code,
historyMorph |bars m| bars_history collect: [:v| Morph new extent: 5@v]. m_AlignmentMorph newRow centering: #bottomRight. m addAllMorphs: bars. ^m
Squeak tells me that "centering:" is an unknown selector. Of course, when I told it to confirm and then tried to do a "printIt" in the workspace of the following, I get an error. I believe I know enough about Squeak that I shouldn't have had to ask it to confirm "centering:", and just because I did confirm it, doesn't mean that their is an object to communicate with, am I right?
Is the tutorial wrong, or is my version of Squeak (3.0) inappropriate, or have I made some error in copying it?
Thanks for your time.
Basically, the tutorial was written for an earlier version of Squeak, so the old alignment stuff doesn't work properly now. It certainly used to, so, strictly speaking, the tutorial isn't wrong.
Someone did post a fix for it, but I can't find it and it looks like it may not have made it back to the tutorial.
I'll try and find it tomorrow or you might like to trawl through the archived list at Yahoo.
Cheers
John
Thanks John,
I will try checking around. What is most important to me, however, is that I know it isn't my bad coding etc. I can try other things now.
Michael
Do we all think that perhaps it is time to replace the code on that Morphic tutorial to work with 3.0 on the Swiki itself? It seems most newbies are using 3.0.
Aaron
Basically, the tutorial was written for an earlier version of Squeak, so the old alignment stuff doesn't work properly now. It certainly used to, so, strictly speaking, the tutorial isn't wrong.
Someone did post a fix for it, but I can't find it and it looks like it may not have made it back to the tutorial.
I'll try and find it tomorrow or you might like to trawl through the archived list at Yahoo.
Cheers
John
--
Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft."
"Rev. Aaron" wrote:
Do we all think that perhaps it is time to replace the code on that Morphic tutorial to work with 3.0 on the Swiki itself? It seems most newbies are using 3.0.
I think so. After all, this is one of the most "pointed at" tutorials and if it doesn't work people are likely to get turned off. After all, some people come to Squeak without any other Smalltalk -- let alone Morphic -- experience and are unlikely to be able to fix it themselves.
Cheers
John
"Rev. Aaron" wrote:
Do we all think that perhaps it is time to replace the code on that Morphic tutorial to work with 3.0 on the Swiki itself? It seems most newbies are using 3.0.
Yes, I agree that the tutorial should be updated to work with 3.0. The tutorial itself is on squeak.org, not on a Swiki, so not just anyone can update it... perhaps whoever is in charge of squeak.org could update it. Would that be Russell?
I assume it would just be a matter of pasting in the new code forwarded in Bob's message, plus maybe a note at the top indicating that the tutorial is compatible with 3.0.
"Noel J. Bergman" wrote:
It seems most newbies are using 3.0.
Or later.
Some might, although generally newbies should be using 3.0 and not 3.1alpha (especially if they expect tutorials to work :) ). Although I suppose there are some newbies out there using 3.1alpha in order to try squeakland.org stuff. But it's still probably better to have tutorials pegged to a released version rather than a moving alpha version.
- Doug Way dway@riskmetrics.com
Aaron
Basically, the tutorial was written for an earlier version of Squeak, so the old alignment stuff doesn't work properly now. It certainly used to, so, strictly speaking, the tutorial isn't wrong.
Someone did post a fix for it, but I can't find it and it looks like it may not have made it back to the tutorial.
I'll try and find it tomorrow or you might like to trawl through the archived list at Yahoo.
Cheers
John
--
Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft."
squeak-dev@lists.squeakfoundation.org