beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 175

background image

C H A P T E R 4

NewtApp Applications

Summary of the NewtApp Framework

4-37

longFormat: yearMonthDayStrSpec,// for LongDateStr

shortFormat: nil,

// for ShortDateStr function

TextScript: // Returns a text representation of data

func()..., //

JamFromEntry: // Retargets to

jamPathExpr

if not nil

func(

jamPathExpr

)..., //

}

newtTextDateView

4

editableTextDateView

:= {// Editable text and date view. One

_proto: newtTextDateView, //format slot must be non-nil

path: 'pathExpr,// Data stored/retrieved from here

longFormat: yearMonthDayStrSpec,// for LongDateStr

shortFormat: nil,

// for ShortDateStr function

TextScript: // Returns a text representation of data

func()..., //

JamFromEntry: // Retargets to

jamPathExpr

if not nil

func(

jamPathExpr

)..., //

}

newtROTextTimeView

4

readOnlyTextTimeView

:= {// Displays and formats time text

_proto: newtROTextTimeView,

path: 'pathExpr,// Data stored/retrieved from here

format: ShortTimeStrSpec,// for TimeStr function

TextScript: // Returns a text representation of data

func()..., //

JamFromEntry: // Retargets to

jamPathExpr

if not nil

func(

jamPathExpr

)..., //

}

newtTextTimeView

4

editableTextTimeView

:= {// Editable time text

_proto: newtTextTimeView,

path: 'pathExpr,// Data stored/retrieved from here

format: ShortTimeStrSpec,// for TimeStr function

TextScript: // Returns a text representation of data

func()..., //

JamFromEntry: // Retargets to

jamPathExpr

if not nil

func(

jamPathExpr

)..., //

}