Examples

Adding a New viewDef to a Stationery-Based Application

Now we are going to add a special read-only viewer of books to our project. (Perhaps we will distribute this item for free to give potential customers a taste of our application.) This read-only viewer of books will, of course, need to be a separate viewDef. Because we want to distribute this to people who don't have the full application, we'll package the viewDef as a separate auto part. The completed project for this example fordifferent platforms is available (Mac OS, Windows 3.1 or Windows 95/NT).

In order to choose between the two viewDefs, we'll add a Show menu to the application while we're at it.


Note:You may wonder how people who don't have the full application would ever have book data to display. Imagine John has the full application and beams a book (see Chapter 12, Routing) to Sally. If Sally has a viewer, she can display the book in the In Box. If she has neither the viewer nor any other viewDef to display the book, all she can do with the book is trash it.


Add Show Button to Application
Create a Viewer viewDef

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

Last modified: 1 DEC 1996