
Examples
Adding a New Editor to People in Names
Let's add some more information to people in the Names application. We think you should always know everyone's favorite color, so let's add some stationery to help us do that. A QuickTime movie of this example is available, as is the completed project for different platforms (Mac OS, Windows 3.1 or Windows 95/NT). Here are the steps to this project:
- We'll add a new viewDef for
person
, the dataDef symbol for people.
- In the Add picker will be a new item "Color". Choosing that will allow the user to provide a favorite color (see FIGURE 11.13).
- We'll store this favorite color as a string in a slot named
|color:Names:Calliope|
in the person soup entry. Note that we need to use our signature as part of the slot name to avoid collision with other slots created by other applications.

FIGURE 11.13 : Editing a favorite color in the Names application.
1. Create a new "Newton 2.0" project. In the Output Settings panel of the Project Settings dialog, set the project to be an auto part.
- Create constants
-
- Create viewDef
-
- The InfoFrame in the viewDef
-
- InstallScript and RemoveScript
-
- Build and Test
-
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996