| M206 Method Index and General Index for John McGuinns Smalltalk Tutorials , OU Course M206, and NCSU Course CSC517 |
|
Home
Tutorials | 1. Starting Smalltalk, and Terminology | 2. Precedence Rules | 3. Classes - Strings | 4. Class Browser | 5. Variables | 6. Error Messages | 12. Control Structures | 16. Dialogs | 23. Collection class | 39. OpenGUI | Information | Smalltalk Books | Student Software & Books | Hints & Tips | Sites | Download Smalltalk | Coloured code | Feedback | Download Documents | ASCII Codes | M206 & Smalltalk Index |
|
|
Originally based on the "master index" has now increased in size to the largest index available for the Open University M206 Computing an Object-oriented approach course. As the site is updated Smalltalk relevent material for CSC517 Object-oriented programming will be added. It is a rather lengthy download, but well worth the time. Updated 28 Jan 03. Page numbers in bold have been updated to the new printed Open 2003 UniversityBlock 1 book A new cdoumn added containing Page numbers in the Smalltalk Handbook. |
ImportantMessage to 2003 M206 students. The course team are printing the chapters out in a different format from previous years, this will probably change the page numbering. This index should still be of use but a little conversion may be needed on the page number. Remember that this index is far more comprehensive than the one provided by the course team. I hope that current students will help me to help you, by forwarding any page number correctons so that I can update this page. Please use the Feedback page to inform me. Thanks M206 List of Blocks and Chapters
ContentsMethod Index AB CD EFGHIJ KLMNOPQ RS TUVWXYZ Arithmetic Comparison Boolean Other ',".; etc.General Index A B C D E F G H I JK L M N O P Q R S T U V WXYZ
|
Using the indexThere are two main indexes on this page | Method Index | General Index | Printout this Page for
a permanent reference, and / or save the page so that you can
use it off-line. Use the links provided on this page for direct access, to other pages within this site. M206 students M206 students can access
M206 HTML files within the C: drive of your own computer. Please
note that this process does NOT use cookies or pry into your
computer. It only directs the Internet browser on your computer
to files on your computer. Please help me to help you by using the Feedback page to inform me of :
After using an LB link, use the browsers "Back" button to return to this page CSC517 studentsSorry the links starting Lb and references such as c22s3p19.htm will not work for you.Save this file on your desktop for instant access. Check the site for updates |
|
| Top | General Index | |
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
|---|---|---|---|---|
| Arithmetic methods | ||||
| + | 47 | 21 | 13,15,17,20 | addition. E.g. 4 + 5 answers 9. Tut 1. Methods |
| - | 47 | subtraction. E.g. 4 - 2 answers 2 | ||
| * | 47 | 21 | 13,15,17,20 | multiply. E.g. 3 * 2 answers 6 |
| ** | 47 | |||
| . | 41 | Tut 12. Use of periods. Expression series | ||
| / | 47 | 21 | 13,15,17,20 | integer division Lb21 p15 |
| // | 47 | division with truncation toward negative infinity. 9//4=2, -9//4=-3. -0.9//0.4=-3. | ||
| \\ | 47 | remainder from division | ||
| ^ | 41 | 14 | 5 | returns a specific
answer that follows the ^. Lb14 p5 |
| Comparison methods | ||||
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| ~= | 47 | 16 21 |
16 17 |
not equal in value Tutorial 12. Comparison Operators |
| < | 47 | 16 21 |
16 13,17 |
less than Tut 12. Comparison Operators , Lb21 p9. |
| > | 47 | 16 | 16 | greater than Tut 12. Comparison Operators , Lb21 p9. |
| <= | 47 | 16 21 |
16 13,17 |
less than or equal to Tut 12. Comparison Operators , Lb21 p9 , Lb 26 d4 |
| >= | 47 | 16 21 |
16 13,17 |
greater than or equal to Tut 12. Comparison Operators |
| = == difference between =and== |
47 | 16 21 27 29 |
16 13,19 10,11 11 |
equal to in value (state). Tut
12. Comparison Operators , Lb21
p9 , Lb21 p13 is it same object Tut 12. Comparison Operators , Lb21 d12. Lb27 d8 |
| := | 41 | 10 | 9 | LB 10 P2. Assign a value
into a variable. Using with a Dialog box |
| ( ) | Use to alter order of precedence,
and/or emphasis order of precedence parenthesis |
|||
| Boolean methods | ||||
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| & | 47 | 16 | 20 | logical AND Tut 12.& , Lb24
d4 |
| | | 47 | 16 | 20 | logical OR Tut 12. | (count > 0) | (width < 10) Note UK keyboards usually | is the key to the left of Z. Use Shift. |
| Other methods ABCDEFGHIJ KLMNOPQRSTUVWXYZ | ||||
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| , | 47 | 9 16 |
15 19 |
Use a comma to Tut
3. concatenate Tut 16. concatenate a string |
| ' strings' | 41 | Use single quotes for strings | ||
| " comments" | 41 | Use double single quotes for comments | ||
| ; | 41 | 14 | 20 | Lb14 p15 Cascade Lb 23 path semicolon is shorthand for the receiver of the previous message. |
| -> | 47 | |||
| # | 41 | |||
| # ( ) | 41 | |||
| | | | 41 | |||
| [ ] | 41 | |||
| $ | 41 | 24 | 16 | Indicates a character object, e.g. $a Lb22 p14-15 , Lb24 d1 | A Method Index AB CDEFGHIJ KLMNOPQ RSTUVWXYZ Arithmetic ComparisonBoolean Other ',".; etc. |
| Method |
 Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| abs | 47 | |||
| add: | 47 | 26 | 18 | Lb26 p9 add: -- to add the object referenced by the argument to the end of elements. |
| add:after: add: before: add:beforeIndex: |
47 47 |
Lb26 d2 , Tutorial 23 Collection class downloads | ||
| addDependant | 47 | |||
| add: first add: last |
47 47 |
Lb29 d1 , Tutorial 23 Collection class downloads | ||
| allSubclasses | Lb21 p7 | |||
| allSuperclasses | Lb21 p5-6 E.g. SmallInteger allSuperclasses | |||
| and: | 48 | 16 | 20 | |
| asArray | 48 | |||
| asDays | 48 | |||
| asIntegerArray | Tut 3 | |||
| asNumber | 48 | 16 | 10 | String to number. Tut 3 , Tut 16. asNumber , Lb24 d7 |
| 5 asFloat asInteger asRational (2/3) asFloat 5 asFloat class |
48
48 |
21 | 14,15,20,23 14,15,23 14,15,20,23 |
Lb21 p11 5 asFloat Tut 3 0.666667 asInteger. Lb21 d17 0.666667 asInteger class 0.666667 asRational (2/3) asFloat |
| asLowercase asUppercase |
48 | Tut 3 , Lb24
d7 Tut 3 , Lb9 p10 |
||
| asOrderedCollection | 48 | |||
| asSeconds | 48 | |||
| asString | See printString. asString is introduced late in the course. Lb39 d9 , Lb45 p13 | |||
| at: | 48 | Tut 3 , Lb23 p5 , Lb26 d2 , Tutorial 23 Collection class downloads | ||
| at:ifAbsent: | 48 | Lb23 p5 | ||
| atEnd | 31 | 19 | Boolean answer -End of stream | |
| at:put: | 48 | Tut 3 , Lb23
p5 , Lb26 d2 , Tutorial 23 Collection class downloads |
||
| atAll:put: | 48 | |||
| atAllPut: | 48 | |||
| balance |
48 | |||
| balance: | 48 | |||
| between:and: | 48 | Tut 12 Selectors that answers true or false. | ||
| beverage:newNamed:priced: | 27 | 10 | ||
| brown | 48 | |||
| ceiling | 48 | 12.8 ceiling. Answers with 13. See floor | ||
| changed | 48 | Replaces updateUserInterfaces Look up updateUserInterfaces in your class browser, and note the method used. Lb39 d15 | ||
| CharTable | Lb22 d21firstInRange: ; lastInRange: , width: , formatOn: | |||
| class | 48 | 21 | 5 | Tut 3 , Lb16 d1 , Lb21 p1-3 |
| colour | 48 | |||
| coolour: | 48 | |||
| condition and selection | 42 | |||
| concatenate: | 48 | Joins strings. Easier to use a comma , E.g. 'one ' , 'two'Tut 3. concatenate |
||
| confirm: | 48 | |||
| copy | 48 | 29 | 13 | Lb 24 d3 , |
| copyUpTo: | Lb45 d3 | |||
| cr | 48 | |||
| credit | 48 | |||
| credit: | 49 | |||
| currentTime | 49 | |||
| Date class | 22 | 7 | Lb22 p7-10 Date class exercises | |
| Date today Date today year Date today day |
22 | 7-8 | aVariable :=Date today Lb22 p7 Browse the Date class for many more useful methods. |
|
| day | 49 | |||
| daysInMonth daysInYear |
49 49 |
LB22 p11 | ||
| dayOfMonth | 49 | |||
| dayOfWeek: | 49 | |||
| day:year: | 49 | |||
| debit: | 49 | |||
| denominator | 49 | |||
| dependents | 49 | |||
| detect: | 49 | 26 | 8 | |
| detect:[ ]ifNone:[ ] | 49 | 26 | 17,29 | Lb24 p8 , LB26
p3 Lb26 p9 detect:ifNone: -- to return an object held in the collection elements Lb27 d9 , Tutorial 23 Collection class downloads |
| Dialog warn: | Dialog Boxes Tut 16 , Lb16 p1 | |||
| Dialog confirm: | Dialog Boxes Tut 16 , Lb16 p2 | |||
| Dialog request: Dialog request:initialAnswer: Dialog request:initialAnswer: onCancel:[ ] |
Dialog Boxes Tut
16 , Lb16 p3 Lb16 p4 Lb16 p6 |
|||
| display clear. | c22s3p19.htm | |||
| display cr. |
c22s3p19.htm | |||
| display hideAnswers. |
c22s3p19.htm , c27s3d10.htm | |||
| display show: display showAnswers. display show: 'string'; cr. display showChar: $*; tab; showChar: $-; tab; showChar: $*. display show: 'string' |
24 | 11 | c22s3p19.htm , Lb27 d10 Top of Page |
|
| do:[ ] | 49 | 26 | 21 | Lb24 d1 , LB26
p3 Lb26 p9 do: -- to enable you to iterate over each object in elements. Lb27 d10 nested do: Tutorial 23 Collection class downloads |
| doesNotUnderstand: | 49 | |||
| down | 49 | |||
| dropVowels | 49 | Tut.3 size Lb9 p10 | ||
| E Method Index AB CDEFGHIJ KLMNOPQ RSTUVWXYZ Arithmetic ComparisonBoolean Other ',".; ect | ||||
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| error: | Lb27 d3 | |||
| even | 49 | Lb16 p8 , Lb24 d1 | ||
| exists | 31 | 13,39 | Boolean answer, does file exist | |
| first | 49 | 26 | 17 | Lb26 p9 first -- to return the first element of the OrderedCollection object referenced by the elements instance variable. Tutorial 23 Collection class downloads |
| firstDayOfMonth | 49 | |||
| firstIndex | 26 | 6 | ( can disregard ) | |
| firstInRange: | Lb22 d21 | |||
| floor | 49 | 12.8 floor answers with 1.2. See ceiling | ||
| formatOn: | Lb22 d21 | |||
| fromSeconda: | 49 | |||
| Frog (list of methods) | 21 | 29 | ||
| green | 49 | |||
| halt | 49 | Lb17 p9 , Lb 17 Dealing with Errors in Expressions | ||
| height | 49 | |||
| height: | 49 | |||
| holder | 49 | |||
| holder: | 49 | |||
| home | 49 | |||
| hours | 49 | |||
| hours: | 49 | |||
| hours:minutes:seconds: | 49 | |||
| hover:by: | 49 | |||
| HoverFrog (list of methods) | 21 | 32 | ||
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| ifFalse: [ ] ifTrue: [ ] ifTrue: [ ] ifFalse: [ ] ifFalse: [ ] ifTrue: [ ] |
42 49-50 | Tut
12. ifFalse: , Lb16
d7 Tut 12. ifTrue: Tut 12. ifTrue:ifFalse: Tut 12. ifFalse:ifTrue: |
||
| includes: | 50 | Lb 23 p1 , Lb27 d10 , Tutorial 23 Collection class downloads | ||
| includesKey: | 50 | |||
| indexOf: | 50 | Lb24 d1 , Lb24 d4 , Tutorial 23 Collection class downloads | ||
| indexOf:ifAbsent: | 50 | |||
| initialize | 50 | 15 | 7 | Lb15 d4 , Lb15 d6 |
| inspect | 50 | Tut 3. Inspecting. Note all objects understand inspect. | ||
| intersection: | Lb 23 p7 | |||
| isEmpty | 50 | 26 31 |
17 18 |
Tut 12 Selectors
that answers true or false. Lb 23 p1 Lb26 p9 to return true if there is at least one object in elements. otherwise to return false. |
| isInteger | 50 | 16 | 21 | Tut 12 Selectors that answers true or false.Top of Page |
| isKinfOf: | 50 | |||
| isMemberOf: | 50 | |||
| isNil | 50 | Lb16 d7 , Lb27 d9 , Lb45 d4 Nested ifs | ||
| isNumber | No isNumber method, see isReal. Tut 12 Selectors that answers true or false. | |||
| isReal | 50 | Tut 12 Selectors that answers true or false. | ||
| isSequenceable | 50 | |||
| isString | 50 | Tut.3. | ||
| isSymbol | 50 | |||
| isVowel | 50 | Lb24 d8 , Lb26 d3Tut 12 Selectors that answers true or false. | ||
| join: | 26 | 17, 18 | ||
| jump | 50 | |||
| Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
|
| keysAtValue:ifAbsent: | 50 | |||
| keysAndValuesDo: | 50 | Lb23 p7 , Lb24 d6 , Tutorial 23 Collection class downloads | ||
| key:value: | 50 | Lb23 d5 , Tutorial 23 Collection class downloads | ,||
| last | 50 | |||
| lastIndex | 26 | 6 | ||
| lastInRange: | Lb22 d21 | |||
| leapYear: | 50 | |||
| left | 50 | |||
| max: | 50 | |||
| min: | 50 | |||
| minutes | 50 | |||
| monthIndex | 50 | |||
| maxVal | 50 | Lb21 p4 | ||
| minVal | 50 | Lb21 p4 | ||
| myDependents | 50 | |||
| negated | 50 | Lb14 p12 | ||
| new | 50 | 15 | 6 | Lb10 d10 |
| new: | 50 | Lb24 d1 instance and Class method depending on class | ||
| newDay:month:year: newDay:monthNumber:year: newDay:year: |
50 | Class methods | ||
| next | 31 | 19 | ||
| next: | 31 | 21 | ||
| nextPut: | 31 | 16 | Top of Page | |
| not | 16 | 16, 19 | Tut 12. | |
| odd | Lb16 p8 | |||
| or: | 16 | 20 | ||
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| perform: | 24 | 21 | frog1 perform: #right Lb24 p9 | |
| plus: | Lb14 p13 addition | |||
| pop | Lb29 d2 | |||
| primitive: | Lb21 d14 | |||
| printHierarchy | This is a very usefulmethod,
it displays the hierarchy, both super and sub classes. Lb21 p7 |
|||
| printOn | Lb45 d2 | |||
| printString | 16 | 9 | number (or object) to StringprintString , Lb9 d6 , Lb16 d1 | |
| printStringRadix: 2 printStringRadix: 16 |
Lb22 p15. Binary Lb22 p16 Hexidecimal Lb22 p17 Other radices |
|||
| push: | Lb29 d2 | |||
| Queue class(list of methods) | 26 | 35 | ||
| quo: | 7 quo: 3 Quotient answer is rounded towards 0. Lb21 d17 | |||
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| remove: | Lb 23 d1 , Tutorial 23 Collection class downloads | |||
| removeFirst | 26 | 18,20 | Lb26 d2 , Tutorial 23 Collection class downloads | |
| remove:ifAbsent:[ ] | 26 | 20 | Lb 23 p1 , Lb26 d2 , Tutorial 23 Collection class downloads | |
| removeKey: | Lb23 p5 , Tutorial 23 Collection class downloads | |||
| removeKey: ifAbsent: [ ] | Lb23 p5 , Tutorial 23 Collection class downloads | |||
| removeLast | Lb26 d2 , Tutorial 23 Collection class downloads | |||
| reverse | Tut. 3 , Lb9 p10 | |||
| rounded | "Answer the integer nearest the
receiver.".2.5 rounded answers 3 2.49999 rounded answers 2 |
|||
| S Method Index AB CDEFGHIJ KLMNOPQ RSTUVWXYZ Arithmetic ComparisonBoolean Other ',".; ect | ||||
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| self | 41 | 13 14 15 |
4, 6 9 8 |
self is a pseudo-variable not a method, but is used within some method's code. Lb13 p2 |
| ^self | Lb24 d4 | |||
| self shouldNotImplement self updateUserInterfaces |
Also look under the message that follows self | |||
| shouldNotImplement | LB26 d12 | |||
| show: | 24 | 11 | ||
| size | 26 | 21 | Tut.3 , Lb 23 p1 , Tutorial 23 Collection class downloads | |
| sortBlock: [ ] | 26 | 14-16 | Lb 26 d4 | |
| subclassResponsibility | 21 | 9 | Lb21 p9 , Lb21d10 | |
| super | 41 | 15 | 8 | super is a pseudo-variable
not a method, but is used within some method's code. super initialize Lb15 d6 ^super new Lb 22 d3 |
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| Timenow (Time now) hours:3 (Time now) hours:3 minutes:30 seconds:45 Time fromSeconds:67000 |
Lb22 p12
Lb22 p13 |
|||
| timesRepeat: | Tut 12 , Lb20 d1 | |||
| Toad(list of methods) | 21 | 34 | ||
| to:do: | Lb24 d1 d6 , Tutorial 23 Collection class downloads | |||
| truncated | 21 | 15 | 3.142 truncated answers 3. Lb21 d17 | |
| Method |
Sm Hnd | Chapter |
Page |
Links, LearningBook Number Practical/Discussion Number. or Comments |
| updateUserInterfaces | 27 | 25 | Lb13 d5(Example
NO explanationuntil d11) Lb27 p11 Use changelater in the OU course rather than updateUserInterfaces |
|
| upTo: | 31 | 19 | Top of Page | |
| value | 16 22 23 |
11 12 11 |
[Dialog warn: 'Hi there'] value
Tut 12. [Blocks] value Lb16 d5 |
|
| value: | 23 | 16 | |myBlock| myBlock :=[:aString | Dialog warn: aString] . myBlock value: 'boo' . myBlock value: 'hello' p23 16. evaluates a block with argument. Produces Dialog box 'boo' then 2nd box 'hello' |
|
| width: | Lb22 d21 | |||
| with: | 24 | 13 | Lb 26d8 | |
| withCRs | withCRs | |||
| [ ] whileFalse: [ ] | 20 31 |
11 19 |
Tut 12. whileFalse:
, Lb20 p2 Lb 23 p3 |
|
| [ ] whileTrue: [ ] | 20 | 11 | Tut 12. whileTrue: , Lb20 p2 | |
| windowSpec | Class methodwindowSpec helps to find GUI errors | |||
|
| Top| Index of Methods| General Index |
| Subject | Sm Hnd | Chapter | Page | Lb Number Practical/Discussion Number. or Comments |
| --> | 23 | 11 | ||
| Abstract classdesign | 21 | 9 | ||
| Abstract classes | 21 45 |
7 19 |
Lb 21 , 22 , 45 |
|
| Abstract methods | 45 | 19 | Provide default behaviour, that is overridden in subclasses. Also see base & template methods | |
| abstraction | 1 | 7 | Top of Page | |
| accessor message, accessor message pairs | 9 20 |
8 7 |
Lb9 d6. getter, setter | |
| accessor methods | 13 | 13 | ||
| accessors for attributes | 27 | 16 | ||
| account button | 7 | 6 | ||
| Account Class | 7 | |||
| accounts | 27 | 15 | ||
| action button | 5 | 19 | ||
| addBeverage:priced: | 27 | 14 | Vending Machine | |
| addMachine: | 27 | 14 | Vending Machine | |
| affordance | 5 19 |
10 12 |
||
| Air-traffic control | Lb 26 , Check Queues section out for the previous TMA. | |||
| allSubclass | 21 | 6 | ||
| allSuperclasses | 21 | 6 | ||
| Amphibian Abstract Class | 8 | 21 | 8 | Appears in LB22 |
| analysis | 1 4 33 43 |
7,8 5 6,7 4 |
||
| and | 16 | 17 | See & in method index | |
| animation | 7 | 5 | ||
| answer | 6 | 19 | Tut 1. Glossary | |
| anthropomorphic language | 35 | 16 | ||
| anthropomorphism | 35 | 16 | ||
| application | 4 | 11 | ||
| application model | 39 | 19 | ||
| application software | 1 | 14,20 | ||
| architecture -computer | 48 | 3 | ||
| argument | 6 8 |
16 7 |
||
| Argument expected | Lb17 d5 Error message | |||
| Arithmetic Operators | + - * / // \\ See methods table above | |||
| ArithmeticValue Class | 27 | 21 | 13 | |
| Array class | 18 | 24 | 7 | Collection class diagram , Lb22 d9 , 11 |
| ArrayedCollection abstract class | 18 | Collection class diagram | ||
| array - literal elements | 24 | 8 | ||
| ASCII | 9 22 31 |
15 11 6 |
ASCII Codes | |
| assess button | 7 | 8 | Top of Page | |
| assignment (concept of) | 10 | 8 | ||
| assignment and messages - visulising | 10 | 15 | ||
| assignment expression | 10 | 9 | ||
| assignment of a collection | LB26 p3 | |||
| assignment and literals | 10 | 9 | ||
| assignment symbol | 10 | 9 | ||
| assignment verses messages | 10 | 19 | ||
| Association class | 37 | 23 33 |
11, 12 5,12 |
|
| association type | 33 | 13 | ||
| authentication | 50 | 16 | ||
| Attaching a user interface to a model | Lb27 p12 | |||
| attribute | 4 6 |
9 4,6 |
Lb 6 d2 Called instance variable, later in course. |
| B C General Index A B C D E F G H I JK L M N O P Q R S T U V WXYZ | ||||
| Subject | Sm Hnd | Chapter | Page | Lb Number Practical/Discussion Number. or Comments |
| backbone | 50 | 9 | ||
| class | Collection class diagram Similar to Set class, but tallies the number of duplicates. | |||
| balance | 27 | 11,12 | ||
| Base methods | 45 | 19 | Lb 23 , 26 Provide behaviour useful to subclasses. Also see abstract & template methods |
|
| basket | 7 | 6 | ||
| Behaviour Class | 11 | |||
| behaviour | 4 | 5,9 | ||
| behavioural requirement | 32 | 5 | ||
| behavioural specification | 32 | 10 | ||
| beverage | 27 | 8,10,14 | ||
| beverages | 27 | 14 | ||
| binary digit | 1 | 15 | ||
| binary digits | 31 | 5 | ||
| binary file | 31 | 8 | ||
| binary message | 9 | 15 | precedence | |
| binary messages | 14 | |||