View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Discussion 3 - Andrew Calvin

Part 1
In detail, describe a feature of Squeak that you have found particularly useful. What is the feature? Why is it useful? How do you envoke it?

Event handling for Morphic objects is a handy feature of Squeak and the code implementing this functionality is quite short. This is a useful technique for sending events after an action has been performed such as a button being clicked. Events can be sent to any object. The following event names are supported: #click, #doubleClick, #keyStroke, #mouseDown, #moseEnter, #mouseEnterDragging, #mouseMove, #mouseLeave, #mouseLeaveDragging, #mouseStillDown, #mouseUp, and #startDrag. Event handling of morphic objects is easily done as follows:
on: theEvent send: selector to: someObject
An example of event handling for a Morphic object would be:
aMorph on: #mouseEnter send: #clicked to: self.
Another useful way to evoke event handling follows this form:
The world menu has an appearance submenu that has many preference options for toggling. For example, clicking appearance, then preferences, and finally menu enables the user to change the menu colors to match the world. Performance enhancements can also be enacted from the preferences submenus. Professor Rick mentioned that removing the color coded text speeds up Squeak programming.
When coding in squeak during some late night it is possible that an endless loop will threaten to lock up your program. Simply pressing alt-period will break out of the endless loop.

Part 2

Discussion 3 - Daniel Engel
I also find my Squeak experience to be more oriented on exploring the system browser and hierarchy browser than just pumping out code. The object oriented programming has thus far been accomplished by discovering all the functions rather than implementing everything.

Shaun Duncan
I found his discussion to be a useful tutorial on reading in files and then using them. The examples illustrate practical applications of the technique.

Links to this Page