# develop-18 9406 June 1994 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-ffa5e595ce1ef9754df91e0c27774235f2c39de86eb20246bc614f2563c83e40)

Transcribed text:

QuickTime Movie Playback • QuickDraw GX Debugging Version • Dogcow History, Part 2

develop
The Apple Technical Journal

Issue 18 June 1994

Giving Users Help With Apple Guide

Programming for Flexibility: The Open Scripting Architecture

Exploiting Graphics Speed on the Power Macintosh

Enhancing PowerPC Native Speed

Displaying Hierarchical Lists

The Right Way to Implement Preferences Files

$10.00

Macintosh Help Topics Index Look For

Image description: A journal cover with a blue-and-yellow pastel painting of a lighthouse under a beam of light, framed by a mock Macintosh Help window showing Topics, Index, and Look For buttons, with a list of article titles on the left against a white background.

Reading notes: Top banner and article titles are in a stylized display font; spelling taken as printed. The masthead tagline 'The Apple Technical Journal' is spaced letters and may be read slightly differently. Small text inside the Help window is partly stylized and may be imprecise.

Printed product names: develop: The Apple Technical Journal

Printed prices: $10.00

Printed dates: June 1994 · Issue 18

Languages: English

[Original Image 1](https://www.vintageapple.net/files/11156ae5e2c80056f905d0e834763f1de03099a93306ec765d950ee3553b9e0e/5e8435837b572efb242b548f.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-b1fba66cdc208b9733ea87d605f89f0e4eae3136fe3a9ddb66f567bf65173758)

Transcribed text:

Giving Users
Help With
Apple Guide
Programming for
Flexibility:
The Open Scripting
Architecture
Exploiting Graphics
Speed on the
Power Macintosh
Enhancing PowerPC
Native Speed
Displaying
Hierarchical Lists
The Right Way to
Implement
Preferences Files
Issue 18   June 1994
QuickTime Movie Playback • QuickDraw GX Debugging Version • Dogcow History, Part 2
d e v e l o p T   h   e   A   p   p   l   e   T   e   c   h   n   i   c   a   l   J   o   u   r   n   a   l
$10.00

Reading notes: Transcript is intentionally empty because the exact text is preserved separately; the other fields were filled only from the supplied copy. No single primary headline is clearly identified; the largest-looking text may be the masthead, so headline is null. The masthead is printed with letters spaced apart (d e v e l o p T h e A p p l e T e c h n i c a l J o u r n a l) and is listed as 'develop The Apple Technical Journal' here, which may not match the printed spacing exactly. Reading order and which article lines are printed as cover headlines versus secondary text could not be confirmed from the image alone.

Printed prices: $10.00

Printed dates: June 1994 · Issue 18

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-fa4c1d9a1099ff013ee8479242b6834d33df0a23b3b9f98ccb0c0e5bdd800e57)

Transcribed text:

E D I T O R I A L   S T A F F
Editor-in-Cheek   Caroline Rose
Managing Editor   Cynthia Jasper
Technical Buckstopper   Dave Johnson
Our Boss   Greg Joswiak
His Boss   Dennis Matthews
Review Board   Pete (“Luke”) Alexander, Dave
Radcliffe, Jim Reekes, Bryan K. (“Beaker”)
Ressler, Larry Rosenstein, Andy Shebanow,
Gregg Williams
Contributing Editors   Lorraine Anderson,
Toni Haskell, Judy Helfand, Joe Williams
Indexer   Marc Savage
A R T   &   P R O D U C T I O N
Production/Art Director   Diane Wilcox
Technical Illustration   John Ryan
Formatting   Forbes Mill Press
Film Services   Aptos Post, Inc.
Prepress Production   PrePress Assembly
Printing   Wolfer Printing Company, Inc.
Photography   Sharon Beals, Cynthia Jasper,
Matt Melmon, Diane Wilcox
Cover Illustration   Hal Rucker and
Corinne Okada of Rucker Huggins Design
ISSN #1047-0735. © 1994 Apple Computer,
Inc. All rights reserved. Apple, the Apple logo,
APDA, AppleLink, the dogcow logo,
HyperCard, HyperTalk, LaserWriter, Lisa,
LocalTalk, Mac, MacApp, Macintosh,
Macintosh Quadra, MacTCP, Moof, MPW,
and Newton are trademarks of Apple Computer,
Inc., registered in the U.S. and other countries.
AOCE, AppleScript, Balloon Help, develop,
Finder, MacinTalk, Macintosh Duo,
NewtonMail, Power Macintosh, PowerTalk,
QuickDraw, QuickTime, and Sound Manager
are trademarks of Apple Computer, Inc. Adobe is
a trademark of Adobe Systems Incorporated,
which may be registered in certain jurisdictions.
PowerPC is a trademark of International
Business Machines Corporation, used under
license therefrom. NuBus is a trademark of
Texas Instruments. All other trademarks are the
property of their respective owners.
T H I N G S   T O   K N O W
develop, The Apple Technical
Journal,   a quarterly publication of
Apple Computer’s Developer Press
group, is published in March, June,
September, and December.   develop
articles and code have been reviewed
for robustness by Apple engineers.
This issue’s CD.   Subscription issues
of   develop   are accompanied by the
develop Bookmark   CD. The Bookmark
CD contains a subset of the materials
on the monthly   Developer CD Series ,
which is available from APDA.
Included on the CD are this issue and
all back issues of   develop   along with the
code that the articles describe. The
develop   code is updated when necessary,
so always use the most recent CD.
The CD also contains Technical
Notes, sample code, and other useful
documentation and tools (these
contents are subject to change).
Software and documentation referred
to as being on this issue’s CD is located
on either the Bookmark CD or the
Reference Library or Tool Chest
edition of the   Developer CD Series .
The   develop   issues and code are also
available on AppleLink and via
anonymous ftp at ftp.apple.com.
Macintosh Technical Notes.
Where references to Macintosh
Technical Notes in   develop   are followed
by something in parentheses like
“(Memory 13),” this indicates the
category and number of the Note on
this issue’s CD.
E-mail addresses.   Most e-mail
addresses mentioned in   develop   are
AppleLink addresses; to convert one of
these to an Internet address, append
“@applelink.apple.com” to it. For
example, DEVELOP on AppleLink
becomes develop@applelink.apple.com
on the Internet. To convert a
NewtonMail address to an Internet
address, append “@online.apple.com”
to it.
C O N T A C T I N G   U S
Feedback.   Send editorial suggestions
or comments to Caroline Rose at
AppleLink CROSE, Internet
crose@applelink.apple.com, or fax
(408)253-8521. Send technical
questions about   develop   to Dave
Johnson at AppleLink JOHNSON.DK,
Internet dkj@apple.com, CompuServe
75300,715, or fax (408)253-8521. Or
write to Caroline or Dave at Apple
Computer, Inc., 20525 Mariani Avenue,
M/S 303-4DP, Cupertino, CA 95014.
Article submissions.   Ask for our
Author’s Guidelines and a submission
form at AppleLink DEVELOP,
Internet develop@applelink.apple.com,
or fax (408)253-8521. Or write to
Caroline Rose at the above address.
Subscriptions.   Subscribe to   develop
through APDA (see below) or use the
subscription card in this issue. For
subscription changes or queries, call
1-800-877-5548 in the U.S. or
(815)734-1116 outside the U.S., or
write to AppleLink DEV.SUBS,
Internet dev.subs@applelink.apple.com,
or   develop , P.O. Box 531, Mount Morris,
IL 61054-7858.
Back issues.   Printed back issues are
available for $13 each in the U.S. or
$20 outside the U.S. To order, call
1-800-877-5548 in the U.S. or
(815)734-1116 outside the U.S., or
write to AppleLink DEV.SUBS,
Internet dev.subs@applelink.apple.com,
or   develop , P.O. Box 531, Mount Morris,
IL 61054-7858.
APDA.   To order products from APDA
or receive a catalog, call 1-800-282-
2732 in the U.S., 1-800-637-0029 in
Canada, (716)871-6555 internationally,
or (716)871-6511 for fax. Order
electronically at AppleLink APDA,
Internet apda@applelink.apple.com,
CompuServe 76666,2405, or America
Online APDAorder. Or write APDA,
Apple Computer, Inc., P.O. Box 319,
Buffalo, NY 14207-0319. Printed on recycled paper
d e v e l o p

Reading notes: Transcript intentionally left empty because the exact extracted text is preserved separately; the other fields are drawn only from the supplied copy. No distinct advertising headline is present; the section labels are not treated as a headline. Prices $13 and $20 are back-issue prices from the subscriptions and back-issues copy, not product advertisements. The only explicit year is 1994, from the copyright line; months in the publication schedule are not treated as dates. Reading order follows the supplied sequence of sections, which may not match the original multi-column layout.

Printed product names: develop · Developer CD Series · Bookmark CD

Printed prices: $13 · $20

Printed dates: 1994

Languages: English

[Original PDF page 2](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-941d07b0439fdb20a8ebab391d1b7f8207b91ccfd13dd54afaf3c027be2562e9)

Transcribed text:

A R T I C L E S
6   Giving Users Help With Apple Guide   by John Powers
Learn how to integrate this powerful new help system into your application, to provide users with context-
sensitive help and interactively guide them through common tasks.
26   Programming for Flexibility: The Open Scripting Architecture   by Paul G. Smith
All about the ability to attach and run scripts as a way of customizing applications.
43   Exploiting Graphics Speed on the Power Macintosh   by Konstantin Othmer, Shannon
Holland, and Brian Cox
A strategy for ensuring that users benefit from the improved performance of QuickDraw on the PowerPC
platform.
58   Displaying Hierarchical Lists   by Martin Minow
Here’s how to provide a user-controlled display mechanism for hierarchical data, much like the triangular
buttons used for displaying files and folders in the Finder.
81   The Right Way to Implement Preferences Files   by Gary Woodcock
Some thoughts on what makes a well implemented preferences file, and a library to help.
C O L U M N S
22   Somewhere in QuickTime
Basic Movie Playback Support
by Peter Hoddie
Some common problems to avoid, with special
attention to compatibility with future releases.
41   Graphical Truffles
The Debugging Version of QuickDraw GX
by Pete (“Luke”) Alexander
How to take advantage of the debugging
version during development, along with news
about a few changes.
55   Balance of Power
Enhancing PowerPC Native Speed
by Dave Evans
Coding tips for getting the most speed out of
the PowerPC processor.
79   View From the Ledge
by Tao Jones
Possibly the last installment of this office
survival guide for the socially and politically
inept.
92   Macintosh Q & A
Apple’s Developer Support Center answers
questions about Macintosh product
development.
103   Newton Q & A: Ask the Llama
Answers to Newton-related development
questions; you can send in your own.
108   KON and BAL’s Puzzle Page
Monitor Madness
by Konstantin Othmer and Bruce Leak
Another brain teaser that’s nearly impossible to
solve.
114   History of the Dogcow, Part 2
by Mark (“The Red”) Harlan
The rest of the story: distribution and
paraphernalia.
2   Editor’s Note
3   Letters
116   Index
Issue 18   June 1994
CONTENTS   1

Reading notes: Article page numbers and column layout ordering are inferred from the list order in the source copy

Printed product names: Apple Guide · QuickDraw · QuickTime · QuickDraw GX · Newton · Macintosh · Power Macintosh · PowerPC · Finder

Printed dates: June 1994

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-daa620b2f284fd2c3da806c50db2b22143cba819834d5d2112255563ae82c17d)

EDITOR'S NOTE

Transcribed text:

One thing about magazine publishing: the wheel keeps turning no matter what.
There can be no slips because of problems that crop up or any extra work that needs
to be done; the “to press” date is set way in advance. So for this issue, having to deal
with redesigning our layout and having our technical editor out on jury duty for
months, I’ve been going crazy. The smiling face you see in this photo is not what I’ve
looked like for most of the last three months!
But enough about me. Let’s talk about the redesign. As you’ve no doubt already
noticed, we’ve changed   develop ’s cover to make it look more like those you’ll find on
newsstands. We’ve added an eye-catching strip across the top and moved the article
titles from the right side of the cover to the left, where they would peek out if the
issues were stacked from left to right (imagine offset overlapping windows).
We’ve changed the layout in the inside to fit a bit more on each page. Issues of   develop
will be slimmer than before, but you’ll still be getting the same amount of content.
We couldn’t resist tweaking a few other things while we were at it. Specifically,
“listing boxes” now help keep code together in one tidy place. But we still put code
close to where it’s discussed, and we still place code in the body of the article if that
makes more sense.
Another change in this issue is a direct result of the aforementioned jury duty: Dave
Johnson’s popular Veteran Neophyte column is missing. But don’t worry; it will
return once justice has been served. Meanwhile we do have two new columns:
Balance of Power, with PowerPC™-related tidbits from Dave Evans, and Newton
Q & A, which lets you interrogate a llama and receive a T-shirt if he uses your
question.
As always, we’d like your feedback. There will be more changes to come, and we
really want to know what works for you and what doesn’t. So please, don’t just gripe
(or sing our praises) among yourselves; drop us a line and give us your $.02! All
information about who to contact for what is now located in one handy place, on the
inside front cover (along with other irresistible tweaks).
By letting us know how we can improve, you help us win awards like the one that we
learned of while working on this issue: an Award of Distinction, and Best of Category
(Monthly or Quarterly Magazines), in the Society for Technical Communication’s
1993 Northern California Technical Publications Competition. So thanks, and please
keep it coming!
Caroline Rose
Editor
CAROLINE ROSE
d e v e l o p   Issue 18   June 1994 2
EDITOR’S NOTE
CAROLINE ROSE   (AppleLink CROSE) was part
of a huge East-to-West Coast migration that took
place one heady summer many years ago. She
stumbled upon a technical writing job and took
to it and to California like a programmer to
Mountain Dew. She’s been a programmer herself
(at Tymshare) and even a manager (at NeXT), but
marks her favorite work years as those spent
writing and editing at Apple — first
Inside
Macintosh and later
develop. To keep herself
sane outside of work, Caroline has little do with
computers and has been known to stop making
sense. She does, however, keep her wits honed
for Scrabble.•

Reading notes: Text 'develop' appears with mixed spacing around the title in the body copy and may be a stylized masthead name 'Issue 18' and page number '2' are printed in the running header and may not be part of the editorial copy

Printed product names: develop · Inside Macintosh · Veteran Neophyte · Balance of Power · Newton Q & A · PowerPC™

Printed prices: $.02

Printed dates: June 1994 · 1993

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-fd3b58e0f18cbed1866ac6faeba7dd359c7e5afbfac9e04ac549b593982744fa)

Transcribed text:

NUMBER FORMATS FOLLOWUP
Regarding the article “International
Number Formatting” in   develop   Issue
16: I’ve written a   free   ResEdit editor
(“FMAT Editor”) that enables you to
easily create Script Manager canonical
formats and store them as resources. I
hope you’ll find it useful.
— Michael Hecht
The author of the article looked at your
editor, and he thought it was so useful that
he submitted it to the CD. Thanks!
— Caroline Rose
NEW FLOATING WDEF ON CD
I’m the author of a freeware floating
window WDEF known as the Infinity
Windoid. It was one of the first such
WDEFs to implement the System 7–
style coloring of windows, tinge colors
and all. It includes support for a title bar
down the left side of a window, System
6’s coloring of windows, multiple
monitors via DeviceLoop, and checking
the available colors in 8-bit mode to
determine whether the title bar should
be color.
I recently finished up version 2.5.1 of the
WDEF, which adds the ability to have a
grow box, a title string in the title bar,
and a slightly different style of title bar.
Please consider including this WDEF
with source code on your CD. An
appropriate place for it would be with
Dean Yu’s floating windows code (Issue
15). Dean has stated that his WDEF is
not highly robust, and providing my
WDEF with the source would make a
lot of sense. This would also help me
meet my goal of making it available to
as many Macintosh developers as
possible.
— Troy Gaul
Thanks for bringing your WDEF to our
attention. We’ve included it with Issue 15’s
floating windows code on this issue’s CD.
Dean has also tweaked the code again since
his last updates. Check it out!
— Caroline Rose
GREAT MAG, BUT LOSE LEDGE
My vote for your View From the Ledge
column is: lose it! Dilbert (the comic
strip by Scott Adams) does a much
better job at commenting on the
political and social structures of
corporate America.
Thanks for the fine publication.   develop
is the only periodical that doesn’t end
up in the trash after I read it. Keep up
the good work.
— Dave Lamkins
The editor thanks you for your kind words
about   develop . As the author of View
From the Ledge, I’ve been volunteered to
address your remarks about that column.
Scott Adams is unquestionably a genius. He
has a certain wit and control of the English
language that hasn’t really been equaled
since Shakespeare, and an artistic flair that
I’m certain makes all Florentines weep.
There’s simply no way I can compete with
this caliber of raw talent.
No doubt Mr. Adams gets invitations to
dine with the President. I’ve never met any
of the Presidents of Apple, let alone of the
United States — although John Sculley did
pull up next to me at a stoplight a few years
LETTERS
LETTERS   3
DON’T FORGET TO WRITE!
We welcome timely letters to the editors,
especially from readers reacting to articles that
we publish in
develop. Letters should be
addressed to Caroline Rose (or, if technical
develop-related questions, to Dave Johnson) at
Apple Computer, Inc., 20525 Mariani Avenue,
M/S 303-4DP, Cupertino, CA 95014
(AppleLink CROSE or JOHNSON.DK). All letters
should include your name and company name as
well as your address and phone number. Letters
may be excerpted or edited for clarity (or to
make them say what we wish they did).•

Reading notes: Source text contains a jumbled reference to 'John Sculley' and 'Florentines' that may be truncated mid-sentence in the letters section. Reading order of the Ledge column reply is partly broken across the page layout.

Printed product names: develop · CD · ResEdit · Script Manager · FMAT Editor · Infinity Windoid · DeviceLoop · AppleLink · Apple Computer, Inc.

Printed dates: Issue 16 · Issue 15

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-f17798d5c1431957a870ff0c17b186923d35566ff4ea24c2b2f35eac7e6ca7eb)

Transcribed text:

ago, and I used to have a Jean-Louis Gassée
mask hanging in my cubicle.
Mr. Adams has the advantage of dealing
with a world where the characters are two-
dimensional, all of their worst traits are
brought to the forefront, and the situations
these characters get caught up in border on
the absurd. None of those things can be said
about the real office environment.
Having said all that, we’re putting View
From the Ledge on ice after this issue, and
the thaw comes only if there’s a chinook in
the form of a strong reader response.
— Tao Jones
MISSING CD? A ROYAL PAIN
First, I’d like to say that I think   develop   is
excellent. I await each issue with
frenzied anticipation and find each one
absorbing, informative, well written,
and funny.
I’d also like to comment on the
Bookmark CD. I can’t, however,
because we don’t get it. I keep reading
articles referring to “this issue's CD”
and it’s infuriating! We get our regular
monthly Developer CD with   Apple
Directions   but no   develop   CD. Is this
because we’re in England? Don’t you
like us any more? It’s the royal family’s
fault, isn’t it? They’ve made us look
stupid. They’re nothing to do with us,
honest. We’d just like our CD.
—Richard Gibson
Some international developers receive
develop   without the Bookmark CD as part
of a mailing that includes the Developer
CD and Apple Directions. Anyone who gets
the Developer CD doesn’t need the
Bookmark CD (see “This issue’s CD” on
the inside front cover).
We still like our British readers, so from
our standpoint you should have no gripe
with the royal family.
Thanks for writing!
—Caroline Rose
d e v e l o p   Issue 18   June 1994 4
Yearn no more: write for   develop . We’re always looking for people
who might be interested in submitting an article or a column. If
you’d like to spotlight and distribute your code to thousands of
developers of Apple products, here’s your opportunity.
If you’re a lot better at writing code than writing articles, don’t
worry. An editor will work with you. The result will be something
you’ll be proud to show your colleagues (and your Mom).
So don’t just sit on those great ideas; feel the thrill of seeing them
published in   develop !
For Author’s Guidelines, editorial schedule, and information on
our incentive program, send a message to DEVELOP on
AppleLink, develop@applelink.apple.com on the Internet, or
Caroline Rose, Apple Computer, Inc., 20525 Mariani Avenue,
M/S 303-4DP, Cupertino, CA 95014.
Do you yearn for the adulation of your colleagues?
YOUR NAME HERE
YOUR PHOTO HERE

Reading notes: Mixed-case 'develop' appears in several contexts; treated as the magazine title. Some letters appear spaced out in the source (d e v e l o p) and layout-driven reading order may be uncertain.

Printed product names: develop · Bookmark CD · Developer CD · Apple Directions · Apple Computer, Inc.

Printed dates: June 1994 · Issue 18

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-10c736575edcc246b1917831287c8ea5bd39f2dd2c9088a7b21c4d687a043471)

Transcribed text:

A positive user experience means getting the task done with a
minimum of hassle. But as applications engage in the features race,
their complexity increases as well, leading to increased user frustration.
One solution is to add a powerful help system that can guide the user
through a task. The new Apple Guide system makes this chore easier
than you might think.
Someone has decided that your application needs help. Maybe it’s a little heavy on
the features, and Marketing is afraid that the user will be overwhelmed. Perhaps your
user studies have shown that users can really benefit from some coaching when
learning your interface. Or the finance experts have figured out that you can save a
lot of money on printing and user support costs by putting help on the screen rather
than in printed manuals. And yesterday the CEO declared that your product must
win a gold medal in customer satisfaction.
It   can   be done.
This article tells you how to add Apple Guide, a new kind of help system, to your
application with a pain and suffering level that you can control, ranging from almost
nothing to only a tingle.
The article doesn’t tell you what help your application should provide; that’s up to
your software designer, technical writer, instructional designer, interface designer,
and whoever else likes to stir the design pot. Once you’ve decided what help you
want and the technical writer has written it using the Apple Guide authoring tool,
you integrate it. That’s where this article — and this issue’s CD, which contains a
sample program with Apple Guide integrated — comes in.
WHAT IS APPLE GUIDE?
Apple Guide is a new kind of help system that acts as an interactive, task-oriented
guide and will be available to all applications systemwide as of System 7.5. Apple Guide
is based on more than two years of research on people’s need for help while using
their computers. Several key findings of this research underlie the Apple Guide design:
JOHN POWERS
Giving Users Help With Apple Guide
d e v e l o p   Issue 18   June 1994 6
JOHN POWERS   (AppleLink JOHNPOWERS),
MWM, Apple employee, seeks intense
relationship with software. Enjoys object-oriented
design, craftsmanship, classical music, long
walks, quiet moments, laser discs with popcorn,
travel, engaging novels, and kinky polymorphism.
Software must be willing to share time with
extended family. Documentation a must.•
The Apple Guide Developer’s Kit   will soon
be available from APDA (if it isn’t already). It
contains everything you need to author databases
and integrate Apple Guide. Included in this kit is
an authoring tool that compiles help content
written with a standard word processor into an
Apple Guide database file. The kit also contains
sample help content files and documentation.•

Reading notes: Byline 'JOHN POWERS' appears both as author credit and in a sidebar bio; reading order between main article and sidebar is uncertain.

Printed product names: Apple Guide · Apple Guide Developer's Kit · Apple Guide authoring tool

Printed dates: June 1994 · System 7.5

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-159067a6bfaa65bd2c8f789894e1511ee120125d132d38a53b839f8e834c426b)

Transcribed text:

•   Users are task-oriented.
•   Users seek help when they’re frustrated doing a task.
•   Help should be an interactive guide to accomplishing a task, not a
static document.
The paradigm is simple:
1. The user has a task to accomplish.
2. The user becomes frustrated when an obstacle prevents
completion of the task.
3. The user asks for help.
Traditional help requires users to go to a printed or on-screen document to identify
the problem in the context of the documentation. This in itself can become a
frustration. Users would rather have someone (or something) guide them through the
obstacle. That’s what Apple Guide does: it acts as an interactive, task-oriented guide.
When users ask for help, the first thing they see is the   access window , which provides
three ways of selecting the help topic. Once the user selects the help topic, the access
window is replaced by the   presentation window , which presents the help topic as a
series of panels containing text, graphics, QuickTime movies, and controls. (Note
that in an application in which Apple Guide has been fully integrated, the help topic
can be preselected for the user based on context — more on this later.) To experience
Apple Guide for yourself, try out the application called MoGuide on this issue’s CD.
Apple Guide is implemented as a system extension (see “What Systemwide Help
Means” for some ramifications of this) that uses a guide database file to drive its
interaction with the user, as depicted in Figure 1. The database file, written using the
Apple Guide authoring tool, contains multimedia help content and instructions on
how to interact with the user. The delivery engine is in the system extension, which
GIVING USERS HELP WITH APPLE GUIDE   7
Application
portion (400K)
Stay-resident
portion (20K)
Guide
database
Apple Guide
system
extension
Access window
Presentation window
Access window
Presentation window
Figure 1.   How Apple Guide works

Reading notes: Running page header and figure labels (e.g., 'Application portion (400K)', 'Figure 1') sit in the extracted text interleaved with body copy, so reading order around the figure is uncertain.

Printed product names: Apple Guide · MoGuide · QuickTime

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-bac4011d0a4a4432606ec6a8f9b6e82af6bf2a28ab0450cefaea98c4c3ef1698)

Transcribed text:

contains two components: a stay-resident portion and a launch-as-needed application
portion. With a RAM footprint of less than 20K, the stay-resident portion installs
patches at startup time, manages the Help menu (the one labeled with a question
mark in a balloon), and starts up Apple Guide from the Help menu. The application
portion is loaded and run when help is being delivered; with a RAM footprint of 400K,
it’s launched as a faceless background application in its own heap. The Apple Guide
system extension and several guide databases will be provided as part of System 7.5.
TO INTEGRATE OR NOT TO INTEGRATE?
You can put Apple Guide to work for you whether or not you decide to integrate it
into your application. However, as in life, the level of pain you choose determines the
amount of gain.
The easiest way to add Apple Guide to an application is to place an Apple Guide
database file in the same folder as the application. No coding changes are necessary;
the integration is automatic. The Apple Guide extension adds the database to the
application’s Help menu and launches the database when the user chooses it.
Here’s what Apple Guide delivers without any changes to your application:
•   help initiated from the Help menu
•   interactive delivery of multimedia help content
d e v e l o p   Issue 18   June 1994 8
Because it’s implemented as a system extension, Apple
Guide is available to all applications systemwide. It’s
designed to help users within and across application
boundaries. Apple Guide can guide a user through
multiple applications including, but not limited to, the
application that invoked it.
Apple Guide’s systemwide nature has ramifications for
everything you do with it. While it enables delivering an
unprecedented level of help to users, it also presents
certain programming challenges. Consider the following
characteristics of systemwide help and what they mean to
you as a developer.
Help works across multiple applications.   Your
application’s guide database can guide a user through
multiple applications, not just your own. You can provide
help for tasks that involve system-level operations and the
use of other applications.
One ramification of this is that if the user switches from
your application to another one after starting up Apple
Guide and without quitting your application or Apple
Guide, Apple Guide will still be present and showing
your guide database. This may be desirable, depending
on what help you’re providing. If not, the user can quit
Apple Guide from the help window. Don’t force Apple
Guide to quit when your application goes to the
background.
Help is always available to the user.   Your
application can always invoke Apple Guide, even if it’s
in use by another application. That application’s guide
database will be closed and yours will be opened and
shown instead.
This works the other way around as well — if the user
invokes Apple Guide from the Help menu within another
application while yours is open in the background, your
guide database will be closed and the other application’s
will be opened and shown instead. Moreover, the other
application can still make Apple Guide quit even if you
closed its guide database to show your own.
The bottom line for you is that you can’t assume that your
guide database is always open, even if the user invoked it
from within your application. A call for dealing with this is
described later, under “Is Your Guide Database Open?”
The user is always in control.   Users can quit Apple
Guide at any time, even if they’ve switched from the
application that started it up. Once again, this means that
you can’t assume your guide database is always open,
even if the user invoked it from within your application.
WHAT SYSTEMWIDE HELP MEANS

Reading notes: Running page header text 'd e v e l o p Issue 18 June 1994 8' is spaced out and may be misparsed Stray character sequence 'd e v e l o p' may be a magazine masthead rather than body text

Printed product names: Apple Guide · System 7.5

Printed dates: June 1994 · Issue 18

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-bc84eed84a4da46f80bceb52ee5dc4b686ecded986b90174acfee38c03c9f45f)

Transcribed text:

•   the ability to mark static interface objects, or dynamic interface
objects identified using the Object Support Library (OSL), to
draw the user’s attention to them
•   elementary to intermediate context sensitivity
This is a lot of help in itself. But if you want more control over Apple Guide, you’ll
need to make code changes in your application. Here’s what those changes can add:
•   information about where the user is in the help system
•   more direct control over what help the user receives and
responsiveness to the user’s context
•   help initiated from any control — including buttons, lists, and
special keys — and from application menus
•   guide databases with your own creator, type, and document icons
•   the ability to use databases located in a folder separate from the
application
If you want the gain and you’re ready for the (slight) pain, read on.
To communicate with Apple Guide from your application, you use standard, trap-
based function calls. The function calls enable your application to get information
about Apple Guide, start up Apple Guide, respond to Apple Guide, modify help
content, and quit Apple Guide. I’ll explain how to do each of these in the sections
that follow. You might want to examine the source code for the sample program
MoGuide on this issue’s CD to see the function calls used in context. Then you can
try integrating Apple Guide into your own application.
GETTING INFORMATION ABOUT APPLE GUIDE
Your application can find out a number of different things about Apple Guide:
whether it’s installed, what its status is, whether an Apple Guide database is available,
the number and characteristics of guide databases available, and whether your own
guide database is open.
IS APPLE GUIDE INSTALLED?
Before you do anything with the Apple Guide extension, you need to determine
whether it’s installed. The following code shows how:
long   result=0;
OSErr err   =   Gestalt(gestaltHelpMgrAttr,   &result);
if   (err==noErr   &&   (result   &   (1   <<   gestaltAppleGuidePresent)))
;   //   Apple   Guide   is   available.
else
;   //   Apple   Guide   is   not   available.
WHAT’S THE STATUS OF APPLE GUIDE?
Once you’ve determined that Apple Guide is installed, you can get more information
about its state — for example, is it active (displaying a help window)? If it is, which
help window is being displayed? The latter information can be saved and used to
restart users at the point where they left the help system.
The AGGetStatus function returns whether Apple Guide is active (kAGIsActive),
sleeping (kAGIsSleeping), or not running (kAGIsNotRunning). In the active state,
GIVING USERS HELP WITH APPLE GUIDE   9

Reading notes: Source begins and ends mid-article, so the primary heading is not visible. Page number 'GIVING USERS HELP WITH APPLE GUIDE 9' is a running header with uncertain placement in reading order.

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/1#scan-87a443eb29e1a3ca76c33845773b12fdd093591d1a81c6cee05e5f377a254897)

Transcribed text:

help is being provided (a guide database is open). In the sleeping state, the Apple
Guide background application is loaded and running, but no help is being provided
(no guide database is open). In the not-running state, the application portion of Apple
Guide isn’t loaded or running.
If Apple Guide is active, you can further determine whether the access window or the
presentation window is showing. For example:
if   (AGGetActiveWindowKind()==kAGAccessWindow)
;   //   Apple   Guide   access   window   is   showing.
else   if   (AGGetActiveWindowKind()==kAGPresentationWindow)
;   //   Apple   Guide   presentation   (topic)   window   is   showing.
else
;   //   No   window   is   showing;   Apple   Guide   is   sleeping   or   not   running.
Be sure you’ve determined that Apple Guide is installed before invoking
AGGetStatus or any other Apple Guide function. Otherwise, if Apple Guide isn’t
present, you’ll get an unimplemented trap error.
IS AN APPLE GUIDE DATABASE AVAILABLE?
You can find out whether an Apple Guide database is available to the current
(frontmost) application, and furthermore, whether a specific type of guide database is
available. (There are two file types and five database types, classified according to the
type of help information they contain; see “About Apple Guide Database Files” for a
rundown of the types.)
The AGGetAvailableDBTypes function returns bits set to correspond to the various
types of guide databases available to (in the same folder as) the frontmost application.
enum   AGDBTypeBit   //   To   test   against   AGGetAvailableDBTypes
{
kAGDBTypeBitAny   =   0x00000001,
kAGDBTypeBitHelp   =   0x00000002,
kAGDBTypeBitTutorial   =   0x00000004,
kAGDBTypeBitShortcuts   =   0x00000008,
kAGDBTypeBitAbout   =   0x00000010,
kAGDBTypeBitOther   =   0x00000080
};
The kAGDBTypeBitAny bit will be true if the application has any Apple Guide
database file available. Thus, the following statement will test whether any guide
database is available:
if   (AGGetAvailableDBTypes()   &   kAGDBTypeBitAny)
;   //   Some   kind   of   database   is   available
You can simlarly use the other constants to test the availability of specific types of
Apple Guide databases.
HOW MANY AND WHICH GUIDE DATABASES ARE AVAILABLE?
The tests described in the preceding section apply only to guide database files or their
aliases in the same folder as the application. You can also find files outside the
application’s folder, by using the AGFile library that’s included on this issue’s CD.
This library doesn’t use or require the Apple Guide system extension and offers
access to information about Apple Guide database files.
d e v e l o p   Issue 18   June 1994 10

Reading notes: Headline not clearly identifiable in supplied text

Printed dates: June 1994 · Issue 18

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/f60d08249f1b37c6e579397ffcbf154fd6997df21c110409619fe5956b196c41/develop-18_9406_June_1994.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-develop-18-9406-june-1994-b8bea4/2.md)
