Debugging Functions
Debug(string)
It takes a string as a parameter, and then searches through the open views for a slot named text
or a slot named debug
. The routine searches all such slots until it finds one that contains a value that matches string
. The view that contains the matching value is returned.
Debug
function tries to access a text
or debug
slot. Since slot access uses proto inheritance, the text
or debug
slot can be in the template or the proto, and need not be directly in the view frame.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996