Making an Existing Application Stationery-Based
allDataDefs
slot to the newtApplication template. Remember this specifies to newtApp the dataDef which should be automatically registered and unregistered:
f := {}; f.(kBookDataDefSym) := GetLayout("BookDataDef.t"); f;10. Add an
allViewDefs
slot to the newtApplication template. This specifies to newtApp the viewDef that should be automatically registered and unregistered:
f := {}; f.(kBookDataDefSym).(kBookEditorViewDefSym) := GetLayout("BookEditorViewDef.t"); f;
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996