home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / pub / users / Harry / cse509 / cse509.slides / packet8 / slide15.gif < prev    next >
Graphics Interchange Format  |  2002-02-04  |  11KB  |  719x539  |  4-bit (3 colors)
Labels: crt screen | dialog box | monitor | sky | web site | window
OCR: Object- Oriented Programming How does Controller work? startUp self coni rol lIni tialize sel1 cont rolLoop self cont rolTerminate controlIni tialize "Sent when this window is active/ topmost You can override self controlLoop [self isCont trolActive whileTrue 1 : self interActivityPause self controlActivity Processor yield] controlTeriinate "Sent when this window no longer active controlActivity cursorPoint cur sorPoint sensor cursorPoint super controlActivi ty (cursorPoint sensor cursorPoint and [self viewHa sCursor] ifTrue sensor redButt tonPressed ifTrue self redBut onActivity sensor YellowBut! onPr ressed ifTrue self yell owBut onAc ivity sensor blueBut tonP ifTrue blueBut tonActivity ] HArTT Porter 2001 doep trolActivity sensoi onPressed Harrt