Debugging Functions

Debug


Debug(string)


This routine returns a view.

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.


Note:For each view, the 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.


Searching the Text Slot
Protos Containing Text Slots
Searching the Debug Slot
The Debug Slot in ROM Protos

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

Last modified: 1 DEC 1996