wiki:squeak_faq_new

Version 8 (modified by daniel.kurzynski, 9 years ago) ( diff )

--

TOC

Squeak FAQ - New Version

Documentation

Where do I find good introductory literature for Squeak/Smalltalk?

The book Squeak by Example is a good starting point. Especially, the book explains the most important tools, the morphic framework and important concepts, such as messages.

In the morphic wiki you can find tutorials hoq to work with morphic and squeak.

There are also many books available for free: An overview can be found here: Stephane Ducasse: Free Books

We also created some screencasts explaing how to work with squeak.

Where do I find a good documentation?

For most of the classes you can view the documentation directly in the browser. The "?" Button between class and instance shows class comments.

Furthermore, we recommend the following websites:

I/O

Graphic (Morphic)

How do I rotate a morph?

To rotate a morph you can create a TransformationMorph around your morph and change the angle using: TransformationMorph>>angle:

aForm := Form fromFileNamed: 'picture.png'.
anImageMorph := aForm asMorph.
aTransformMorph := TransformationMorph new asFlexOf: anImageMorph. 
aTransformMorph openInHand.
aTransformMorph angle: Float pi/4 negated.

If you want to rotate a local Resource only once at the beginning, you can create a From and rotate it using From>>rotateBy: You can rotate it later on by creating another rotated copy and exchanging the from of the ImageMorph. However, this is inperformant if used often.

aForm := Form fromFileNamed: 'picture.png'.
anImageMorph := aForm asMorph.
anImageMorph image: (aForm rotateBy:45 smoothing:10).
anImageMorph openInHand.
anImageMorph image: (aForm rotateBy:90 smoothing:1).

Sound

Image Concept

Seaside

Gemstone

Versioning (Monticello)

Patterns and Idioms

Other

Note: See TracWiki for help on using the wiki.