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

Fall2001 Midterm Review: Changed/Update

Link back to Fall 2001 Midterm Review


timer's process is awoken after sleeping for a second and nextSecond is called. timer then tells the Clock that the next second has occused by calling clock nextSecond. The clock recives the message and updates its time. It then calls hte message self changed: #time. This will notify any dependent object that a change has occured and they need to react accordingly. ClockWindow is a dependent of clock and will recieve a call to update: and be passed hte message #time. It will then query the clock for the new time and display it
Jared Parsons
I think everything is right there only its ClockText not ClockWindow that cares about the change in #time and then it asks the clock for the new time and changes itself, without doing anything with the Window Robert Schierholz



Link to this Page