Apple Newton Utilities Uživatelská příručka Strana 165

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 942
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 164
CHAPTER 4
NewtApp Applications
Summary of the NewtApp Framework 4-27
newtApplication 4
myNewtAppBaseView := {
_proto: newtapplication, // Application base view proto
appSymbol: '|IOU:DTS| //Unique application symbol
title: "Roll Starter" // A string naming the app
appObject: ["Ox", "Oxen"]// Array with singular and
// plural strings describing application’s data
appAll: "All Notes" // Displayed in folder tab picker
allSoups: { //Frame defining all known soups for app
mySoup: {
_proto: newtSoup,
... }
}
allLayouts: {
// Frame with references to layout files;
// both default and overview required.
default:GetLayout("DefaultLayoutFile"),
overview:GetLayout("OverviewLayoutFile"),
}
scrollingEndBehavior:'beepAndWrap // How scrolling is
// handled at end of view; can also be 'wrap, 'stop, or
// 'beepAndStop.
scrollingUpBehavior: 'bottom //Either 'top or 'bottom
statusBarSlot: 'myStatusBar //Declare name to base so
//layouts may send messages
allDataDefs: {'|appName:SIG|:GetLayout("yourDataDef")}
//Frame with dataDef symbols as slot names. Slot
// values are references to dataDef layout files.
allViewDefs:
{'|appName:SIG|: {default:GetLayout("yourViewDef")}}
// Frame with dataDef symbols as slot names. Slot
// values are references to frames of viewDef
// layout files.
superSymbol: '|appName:SIG| //Unique symbol identifying
//superSet of application’s soups
doCardRouting:true or 'onlyCardRouting //Enables
// filing and routing
Zobrazit stránku 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 941 942

Komentáře k této Příručce

Žádné komentáře