Debug

The Debug Slot in ROM Protos

The ROM protos have a debug slot, but it contains an integer rather than a string. In order to use the string value, download "DebugHashToName.pkg" (found in NTK's Newton Debug Tools folder). Then you'll be able to do things like

theStaticText := Debug("protoStaticText")
Note that this technique won't work for templates that override the debug slot of their proto. For those, you'll need to use the value of the debug slot in your template.


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

Last modified: 1 DEC 1996