Adding a New Kind of Data to the Notepad

Enhance the viewDef

The only enhancement necessary for the viewDef is to make sure that it can't be resized too small. A QuickTime movie of this example is available.

1. Add a viewDefHeight slot which will provide a minimum size:

64
2. Add a version slot (for future compatibility):

1
Now when you build and download, you'll find that the view can't be resized too small. That is all the modifications we will be making to the temperature stationery. Notice the relatively small number of steps required to implement stationery. At this point, we are ready to create a different type of stationery.


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

Last modified: 1 DEC 1996