C H A P T E R 1 9
Built-in Applications and System Data
To Do List
theIndex := i;
//and mark it as done
The third parameter to
determines whether a task is checked off; passing
Miscellaneous To Do List Methods
The To Do List also provides the following methods:
return the shapes necessary to draw
tasks, which are used for printing.
returns the index in the
array of the last
sets the priority of a task. (This method requires the To Do List
to be open.)
scrolls the To Do List as necessary to ensure that a
task is visible. (This method requires the To Do List to be open.)
Using the To Do List Soup
The To Do List stores its data in the "To Do List" soup. Entries in this soup are
frames for either a particular day, or for all repeating to do items.
In this soup, each day has a single entry that includes a
slot, which is an
array of tasks for that day. All repeating tasks are saved in a single entry, with a
slot of 0.
If one day is represented by an entry on each of several stores of the soup--for
example, if there was one entry in internal store and one on a storage card--the To
Do List merges the entries for display purposes. The entries are not actually moved
from one store to another in this process.
For information about the structure of entries in this soup, see "To Do List Soup
Format" (page 16-77) in Newton Programmer's Reference. A list of these frames is
available in the Summary; see "To Do List Soup" (page 19-53).
To avoid future compatibility problems with soup format changes, you should use
the global functions
to get or
change entries in any of the built-in soups. They allow you to get and set the values