
Newton Data Storage
Introduction
This section provides you with a detailed overview of the Newton's model for data storage and retrieval. First, we describe the Newton model as it differs from traditional models, then we cover some of the central concepts of this model, including:
- Stores--the physical location of data.
- Soups--a collection of related entries.
- Queries and cursors--the way you order and navigate through data.
Note:
If you are writing an application from scratch, you'll need to make the calls described in this chapter. If you are using NewtApp (see Chapter 10, NewtApp), you won't make most of these calls--NewtApp takes care of them for you. In either case, however, the concepts described in this chapter are crucial to understanding Newton application architecture and data handling.

FIGURE 9.1 : A traditional model of data file types and storage.
- Persistent Objects
-
- Soups
-
- Sharing Data between Applications
-
- Stores
-
- Union Soups
-
- When Soups Get Created
-
- Queries/Cursors
-
- Soup Entries Are Self-Contained
-
- Soup Entries Have a Unique ID
-
- Soup Entry Compression
-
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996