
Guide to Creating a Minimal NewtApp
3. Draw a newtApplication in the layout file. Remove the following slots: afterScript, allDataDefs, allViewDefs, superSymbol as they are used for stationery support (see FIGURE 10.7). Set the following slots to these values:
allLayouts{
default: GetLayout("Default.t"),
overview: GetLayout("Overview.t"),
}
allSoups{
mySoup: {
_proto: newtSoup,
soupName: "Temporary soup",
soupIndices: [],
soupQuery: {},
},
}
appAll"All Items"
appObject["Item", "Items"]
appSymbolkAppSymbol
titlekAppName

FIGURE 10.7 : Initial slots to remove from NewtApplication.

menuLeftButtons:[newtInfoButton]
menuRightButtons:[newtActionButton, newtFilingButton]
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996