NTK Reference

Creating a User Proto

The way to reuse templates and build code libraries of application components is to use protos. Proto creation is remarkably similar to regular layout creation; the only difference is the type of layout file you select in the File menu.

To create a proto, select New Proto Template from the File menu, and you will get the different-looking layout screen you see in FIGURE A.16.

FIGURE A.16 : Creating a new proto template.


You have the same tools available to you in creating your proto. Further, the actual dragging out of templates in the proto is identical to template creation in a regular layout window. Once you have completed your proto, you must add it to your project using Add Window or Add File from the Project menu.

Once the new proto is added to the project, it is available for use in the tool palette with the other tools (see FIGURE A.17). User protos are displayed and picked from their own list in the tool palette, however (see FIGURE A.17).

FIGURE A.17 : A project and tool palette with user protos.


Adding a User Proto to a Layout

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

Last modified: 1 DEC 1996