Newton Interface Design

Use the Correct Proto or viewClass

Within the NTK tool palette, there are many choices for a proto to use as a template's base (see "The System Protos" on page 174). In some cases, it is obvious which proto to select. For example, when you want a non-tappable label for an item you will probably use a protoStaticText. In other cases, it is not as clear which proto or viewClass you should use for the job. We have already said that some judgement is required in whether to use a protoLabelInputLine (a picker list) or a protoInputLine.

You should become familiar with all of the characteristics of the viewClasses and protos so you will know which will best fit the design you have in mind. Do not forget that the right alternative may be to design your own proto to handle the task (something we will do later, see "Creating and Using User Protos" on page 178).


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

Last modified: 1 DEC 1996