Debug

Searching the Text Slot

Since Debug searches for a text slot, you have access to the large number of views that contain text slots. As an example, consider an application that contains a "Press Me" button (see FIGURE 8.6). You can find that button view from within the Inspector by executing

theButtonView := Debug("Press Me");
The Debug function is not case-sensitive. Thus, you could execute:

theButtonView := Debug("PreSs ME");

FIGURE 8.6 : An application with a "Press Me" button.


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

Last modified: 1 DEC 1996