I am making this topic to contain helpful Smalltalk-1080 (AKA - Squeak). It's not a guide to get started, but rather a guide to help those who already know the language.
Please do NOT post here with comments like 'Cool'. Only post if you are submitting more code or asking questions.
Offline
cool!
sorry, I have a bad sense of humour, but I do have a question - Do you know Squeak?
Offline
Repeating Commands
LENGTH timesRepeat: [ COMMANDS TO REPEAT ].
LENGTH = No. Times to repeat
COMMANDS TO REPEAT = Squeak code to use.
Offline
jji7skyline wrote:
cool!
sorry, I have a bad sense of humour, but I do have a question - Do you know Squeak?
Yes, Now can you delete your question.
Offline
This Isn't Going So Well.
Quote This In The First Post:
beep
('beep' #- #beep)
For A Block. If You Want To Use It In A Method, Use
self beep
Or
Object beep
Check Out Kernel-Objects > Object > Instance > Error Handling > Beep
Boxing
BlockSpec:
('make dialog label %s text %s' #- #doDialogWTitle:text: 'Hi!' 'Mrsrec Is The Best Scratcher!')
Now The Method YOU MUST HAVE THIS FOR THE BLOCK TO WORK, UNLIKE BEEP!
The Method Goes Under Instance, And Any Category To The Right Of The One That Says ScriptableScratchMorph, You Can Choose Any Of Them. If You Choose All, It Goes To A Cateogry Called "As Yet Unclassified". The Method:
doDialogWTitle: t1 text: t2 DialogBoxMorph inform: t2 title: t1
Random Scraps Of Code :
(Smalltalk isMacOSX) ifTrue: [ ] ifFalse: [ ]
Smalltalk snapshot: false andQuit: true
HandMorph openScratchFrame
Well, All For Now! Thanks!
Last edited by mrsrec (2013-03-30 10:28:09)
Offline