NewtApplication

Required Slots

appAll
String. This takes the form "All items" where item describes the things the application works with. A bovine-management program might set this to "All cows".

appSymbol
Symbol. The unique application symbol. You should set this to the NTK constant kAppSymbol.

appObject
Array. This contains singular and plural strings describing what your application works with. A canine-management program might set this to ["dog", "dogs"].

title
String. The title of the application. Whenever the Newton OS needs to describe this application to the user, it uses this string. A porcine-management program might set this to "PigApp".

allLayouts
Frame. This is a frame referencing the default and overview layouts used in your application. The frame has two slots, default and overview, and the value of each slot is the corresponding layout. You'll normally store your layouts in files named "default.t" and "overview.t". Thus, the frame should always look like this:
{
default: GetLayout("default.t"),
overview:GetLayout("overview.t"),
}

allSoups
Frame. This slot describes the soup(s) used in your application. The slot names in the frame are symbols you'll use in your layout layer to specify a particular soup. The slot values are themselves frames which proto from newtSoup (see "newtSoup" on page 291 for more details). Here is an allSoups frame describing a soup indexed on a name slot:

//the allSoups frame
{ mySoup: {
_proto: newtSoup,
soupName: "Soup:Calliope",
soupIndices: [
{
structure: 'slot,
path: 'name,
type: 'string,
},
],
soupQuery: {indexPath: 'name},
},
}


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

Last modified: 1 DEC 1996