Changes between Version 12 and Version 13 of squeak_faq_new
- Timestamp:
- 03/25/2015 11:34:30 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
squeak_faq_new
v12 v13 9 9 The book [http://www.squeakbyexample.org/ 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. 10 10 11 In the [http://wiki.squeak.org/squeak/792#Morphic morphic wiki] you can find tutorials ho qto work with morphic and squeak.11 In the [http://wiki.squeak.org/squeak/792#Morphic morphic wiki] you can find tutorials how to work with morphic and squeak. 12 12 13 13 There are also many books available for free: An overview can be found here: [http://stephane.ducasse.free.fr/FreeBooks.html Stephane Ducasse: Free Books] 14 14 15 We also created some [https://www.hpi.uni-potsdam.de/hirschfeld/trac/SqueakCommunityProjects/wiki/squeak_screencasts screencasts] explain g how to work with squeak.15 We also created some [https://www.hpi.uni-potsdam.de/hirschfeld/trac/SqueakCommunityProjects/wiki/squeak_screencasts screencasts] explaining how to work with squeak. 16 16 17 17 === Where do I find a good documentation? === … … 31 31 * [http://wiki.squeak.org/squeak/5699 Terse guide to Squeak] 32 32 33 == Small codeSyntax ==33 == Smalltalk Syntax == 34 34 35 35 === How do I leave a method without returning a value, e.g. early return? === … … 40 40 41 41 === Are there abstract classes in !Smalltalk and how should I name them? === 42 In !Smalltalk a class is abstract when a method is implemented with "self subclassResponsibility". However, you can still create objects of this class, but this method cannot be called. A typically id om is to extend the name with the word "Abstract". Examples in the image are: AbstracEvent, AbstractFont, or AbstractSound.42 In !Smalltalk a class is abstract when a method is implemented with "self subclassResponsibility". However, you can still create objects of this class, but this method cannot be called. A typically idiom is to extend the name with the word "Abstract". Examples in the image are: AbstractEvent, AbstractFont, or AbstractSound. 43 43 44 == Id oms and Patterns ==44 == Idioms and Patterns == 45 45 === How to I access class variables or methods? Via classname or self class? === 46 46 … … 51 51 52 52 === How do I repeat an image in the background? === 53 An image can be repeated in the Back round using an !InfiniteMorph as a morph's fillstyle:53 An image can be repeated in the Background using an !InfiniteMorph as a morph's fill-style: 54 54 {{{ 55 55 aForm := Form fromFileNamed: 'picture.png'. … … 62 62 63 63 === How do I react on deleting morphs using halos? === 64 If a morph is del ted using the X in the halo menu, `Morph>>dismissViaHalo`, `Morph>>dismissMorph`, `Morph>>delete` are called. If your morph is a subclass of Morph, you can overwrite one of these. Do not forget to call the super implementation.64 If a morph is deleted using the X in the halo menu, `Morph>>dismissViaHalo`, `Morph>>dismissMorph`, `Morph>>delete` are called. If your morph is a subclass of Morph, you can overwrite one of these. Do not forget to call the super implementation. 65 65 66 66 === How do I prevent a Morph from stepping directly after opening? === 67 67 68 `Morph>>wantsStep` can be overwritten returning false. As a result the morph will not start stepping immediately. Nevertheless e, you can start stepping with `Morph>>startStepping` later on.68 `Morph>>wantsStep` can be overwritten returning false. As a result the morph will not start stepping immediately. Nevertheless, you can start stepping with `Morph>>startStepping` later on. 69 69 70 70