NewtApplication
dateFindSlot
'creationDate
. If you don't have an indexed date slot (aren't supporting Date Find), you should nonetheless add a DateFind
slot with the value nil
to your newtApplication. By doing so, you will override the default DateFind
method provided by newtApplication
, and thereby disable Date Find.
doCardRouting
true
, the folder slip contains buttons for moving the selected item to a particular store. If nil
, the folder slip doesn't contain a way to change the store. If 'onlyCardRouting
, the folder slip contains no folder controls, but does have buttons to change the store. The default value is true
.
statusBarSlot
'myStatusBar
.
aboutInfo
tagLine
, version
, copyright
, and trademarks
, and each holds a string. FIGURE 10.3 shows a sample About slip based on this frame.
FIGURE 10.3 : Customized About slip.
aboutView
prefsView
GetAppPreferences
. You should also store your custom preferences in a subframe with your application symbol as the slot name (to avoid conflict with NewtApp preferences). When the slip is closed, call SaveAppState
to save the preferences frame.
superSymbol
superSymbol
matches this superSymbol
will appear in the New button. The default value for this slot is 'notes
.
allDataDefs
{
|MyDataDef1:Calliope|: GetLayout("dataDef1.t"),
|MyDataDef2:Calliope|: GetLayout("dataDef2.t"),
}
f := {};
f.(kDataDef1Symbol) := GetLayout("dataDef1.t");
f.(kDataDef2Symbol) := GetLayout("dataDef2.t");
f;
(For information on this unusual syntax see "Registering with NewtApp" on page 333).
allViewDefs
{
|MyDataDef1:Calliope|: {
default: GetLayout("view1Editor.t"),
print: GetLayout("view1Print.t"),
}
}
f := {};
f.(kDataDef1Symbol).(kViewDef1EditorSymbol) := GetLayout("view1Editor.t");
f.(kDataDef1Symbol).(kViewDef1PrintSymbol) := GetLayout("view1Print.t");
f;
(For information on this syntax see "Registering with NewtApp" on page 333).
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996