Store Functions

Soup Creation


store:CreateSoupXmit(soupName, arrayOfIndexSpecs, changeSymbol)


This store method creates a soup on store:

soupName
The name of the soup.

arrayOfIndexSpecs
An array of index specification frames (see "Index Specification Frames" on page 245 for details). If you pass an empty array, no index will be created.

changeSymbol
A symbol specifying who made the change (it is usually an application symbol). If changeSymbol is nil, no change notification is done.

Here is an example that creates a soup with two indexes:

internal := GetStores()[0];
internal:CreateSoupXmit("Foo", [
   {
      structure: 'slot,
      path:      'name,
      type:      'string
   },
   {
      structure: 'slot,
      path:      'height,
      type:      'real
   }
],
'|ProgNewton:Calliope|);

Note:Normally, you will use RegUnionSoup in your application. It creates soups on stores as necessary and is the recommended way to create union soups. See "RegUnionSoup" on page 251 for complete details.


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

Last modified: 1 DEC 1996