Introduction

When Soups Get Created

The Newton OS also handles the timing of soup creation in an elegant fashion. It does so using a soup definition (soup def) frame. This frame is registered with the system, and it contains information about how to create a member soup. This information includes:

Union soups use a just-in-time soup creation philosophy. When an entry is added to a union soup, the system checks to see whether such a soup exists on the default store. If so, the system adds the entry; if not, the system creates a brand new soup on that store. It uses the registered soup def to create the soup and then adds the entry.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996