
Architecture of NewtApp
Slot Layer
This layer corresponds to one slot in a soup entry. It knows what slot it edits and is responsible for reading the slot from the soup entry, and displaying it (commonly as text). It is also responsible for providing the user a way to edit the slot; when the user edits it, it updates the slot value and then notifies the entry layer that the soup entry has changed.
This layer has many different protos associated with it. These protos are distinguished from one another based on:
- The value the slot holds
- Does the slot hold a number? a date? a time? a string? a phone number? a boolean?
- The appearance of the editor
- Does the slot editor have a label? Does it just have an input line?
- The editability of the slot
- Is the slot read-only? Is it read-write?
For example, the newtROLabelInputLine displays a string slot with a label, but doesn't allow editing (read-only).
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996