Object Flow System
Volume Number: 12
Issue Number: 2
Column Tag: OpenDoc
Using OpenDoc With
Object Flow System (OFS)
Get up and running with OpenDoc
By Gerry Kenner, University of Utah, and David Kenner, Phone
Directories
Note: Source code files accompanying article are located on MacTech CD-ROM or
source code disks.
Introduction
OK. You have taken your CD containing OpenDoc, downloaded the necessary documents,
and have used PartMaker to create a generic program named HelloPart. You definitely
have a warm feeling of competence because this could not have been done without doing
everything precisely as the instructions called for (remember that SOM file which you
failed to name in version 1 because you overlooked the instruction to do it?). What do
you do now? Start reading the documentation? Heaven forbid. At least not until you
have a better idea about what OpenDoc is and what it can do.
We propose to teach OpenDoc using the following steps:
1. Define OFS.
2. Explain what OpenDoc is and provide a glossary of major terms.
3. Do an overview of Apple’s SamplePart (C++) project.
4. Outline a tutorial project which will create a module consisting of two parts.
When completed, this project will show a menu bar with an item for selecting the
name of a PICT file (ImagePart). A SFGetFile dialog boxwill appear (SelectPart)
asking for the name. The name will then be placed into persistent storage for
access by the ImagePart. The name will be retrieved by the ImagePart and
displayed in its window.