Implementing Stationery

Data

Each of your soup entries will have a class slot containing a dataDef symbol. This describes the soup entry's kind of data to the system. Here are some of the dataDef types already used by the Newton OS:

person
A person (Names application).

group
A group (Names application).

company
A company (Names application).

note
A note (Notes application).

outline
An outline (Notes application).

checklist
A checklist (Notes application).

Each dataDef symbol must be unique. Therefore, any such symbol you create will have a signature appended to the end (see "Creating Unique Application Symbols and Names" on page 419).


Note:The NewtonScript function ClassOf returns the contents of the class slot, or, if no class slot exists, returns the symbol frame.
For example,
ClassOf({class: 'myType, other: 5}) --> 'myType
while:
ClassOf({other: 5}) --> 'frame


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

Last modified: 1 DEC 1996