Other Messages the View System Sends

viewClickScript(unit)

This is called when a view is tapped on. To receive this message, the vClickable view flag must be set. unit contains information about the stroke. To turn off ink, call InkOff(unit).

This method should return true if it handled the tap, and then no further processing of the tap will be done (strokes, gestures, words). If it returns nil, the closest ancestor that is vClickable will be sent the same message. If no such ancestor is found, or if the method returns 'skip, the default action is taken, which may include calls to viewStrokeScript, viewGestureScript, or viewWordScript.

Unlike most view messages, this one is found using both proto and parent inheritance.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996