Build Your First Application

Name Templates

To name a template, select it in the layout window and choose Template Info from the Browser menu. Type the name of the template in the dialog (see FIGURE 2.26). You can see the name of the template in the layout window if the template is large enough.

Naming is useful to distinguish various templates while within NTK. These names are also used during debugging and are used as variables referring to your views within your code.

Name the protoApp "myApp". Name the protoLabelInputLine "input". Name the protoCheckbox "box". FIGURE 2.27 shows the layout window after making these naming changes.

FIGURE 2.26 : Naming a template.


FIGURE 2.27 : Layout with all templates named.


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

Last modified: 1 DEC 1996