What Is Stationery?
price
slot in the entry view. The newtOverLayout has an OverviewAbstract
method which reads (among other slots) the price
slot. Last, but not least, we initially got the soup entry from the allSoups
frame which used CreateBlankEntry
to initialize the price slot. This type of application functions much like the gears shown in FIGURE 11.5: everything tightly meshed together, one gear depending upon another to be able to do its job.
FIGURE 11.5 : Gears representing a non-stationery-based application.
FIGURE 11.6 : Gears representing a stationery-based application.
Admittedly, even a stationery-based application will have knowledge of some slots--application-specific slots such as the creation date for the Notepad, or the sortBy
slot in the Names application. Other than those very application-specific slots, stationery will be responsible for all other slots.
As a result, the application takes a higher-level view of things. Should this be a card-style or roll-style application? How should soup entries be ordered? What operations can be performed on soup entries? The particulars of each kind of data are left up to the stationery. The application goes along its merry way, expecting the stationery to do its part when called upon.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996