Making an Existing Application Stationery-Based

Create viewDef

5. Create a layout file and draw within it a clView. Add the following slots to make it a viewDef:

name
"Book Editor"

type
'editor

symbol
'default

version
1

6. Set the viewBounds slots to 0, and the viewJustify slot to parentRelativeFull horizontal and vertical (so it will take up the width and height of its parent at runtime).

7. Now add the slot layer protos. Open "Default.t". In the layout window, select all the children of the newtEntryView, cut them, and paste them as children of the viewDef.

8. Save the file as "BookEditorViewDef.t" and add it to the project. Change the build order so it builds before "Main.t".


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

Last modified: 1 DEC 1996