# Apple Directions — May 1994 — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2)

## 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.

### PDF page 13

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-edf3aa519f82f3d3e89ce8a0ec3c65cbdaaa59e9c77a4aaf9929efe471df2f5a)

Transcribed text:

M   A   Y   1   9   9   4
Technology   13
Apple Directions
Do Visible Work First
The next challenge is to put your program’s speed into the areas
where it does the most good. In most cases, this means responding
quickly to user input, bringing back initial results rapidly, and shift-
ing as much work as possible to times when the user is busy doing
something else.
Whenever you have a choice, do the work users can see first,
then complete the rest while users are busy absorbing what they
see onscreen. For instance, if your program has to get 10,000 rows
of data from a mainframe, do everything in your power to bring
back the first 40 rows of data and display them right away. Then,
while users are looking over this data, you’ll have time to start get-
ting the other 9,960 rows. At the very least, you’ll have provided
users with reading material to help pass the time.
The converse of “Do visible work first” is that you can give   invisi-
ble   work low priority. A great example is the way file sharing starts
up in System 7. On a large system, file sharing may take several
minutes to scan the various disks and directories as part of its start-
up process. The developers wisely made this a background process
with a fairly small pull on the system’s capacity. As a result, the user
is able to get useful work done while file sharing completes its scan
during the moments when the user is busy. No doubt file sharing
could start up much more quickly if it took all the CPU priority and
made the user stand by until it was finished. However, the real
result of that would likely have been legions of unhappy users who
would have preferred to disable file sharing rather than tolerate the
delay.
Faking Out the User
All of the above is about preventing users from feeling like they’re
waiting.   Waiting, as they say, is a Bad Thing. Luckily, researchers
have recently made a major breakthrough in waiting science that
has important implications for software design.
Glasnost   has given the world access to the huge body of research
from scientists in the former Soviet Union on the subject of waiting in
lines. As it turns out, there are actually two distinct types of lines. A
type 1 line typically stretches out of sight and hasn’t moved since
dawn. When the waiting customers arrive at the front of the line, they
usually find bureaucrats providing halfhearted service while looking
like they have better things to do. (Although the research here is
based on toilet paper lines in the Soviet Union, a similar type of line-
waiting culture can be observed at the San Jose Department of Motor
Vehicles). Long-time residents of such lines are given to fits of resent-
ment, depression, and sudden homicidal rage.
A type 2 line is marked by steady, incremental movement with
diligent work on the part of the staff working at the front of the line.
It turns out that if people suspect that they are in a type 2 line, they
experience much less anxiety. Indeed, if the object at the end of the
line is highly desirable (such as tickets to a Pink Floyd concert), they
may even sense a sort of giddy anticipation.
If you must make users wait, it’s important to give them the
impression that they are waiting in a type 2 line. The keys are that
users must know how long the wait is, see steady progress, and get
the feeling that the system is working as hard as possible to make
their wait short.
The chief tools we have for doing this on the Macintosh are the
“busy” cursor and the progress bar. Busy cursors can say to the user,
“I know you’re there, your problem is important to me, and I’m
devoting all my energies to your problem.” The “I know you’re
there” part is especially important, since computers (and shop
clerks) who just seem to “go away” without any warning while the
user is waiting tend to find their reset buttons punched.
An animated busy cursor, such as a beach ball, can be especially
effective in keeping users pacified. The trick is that for each turn of
the cursor, users will infer that the computer did a certain amount
of work. Thus, if you want to convince users that you’re working
very hard on their problem, spin the cursor a lot. As long as you
don’t go too crazy with this, you’ll give users the impression that
long waits must mean “I sure gave the system a lot of work to do”
rather than “Gosh, that system is slow!”
There are two caveats here: First, don’t make the animation look
so involved that users begins to suspect you’re wasting their time
morphing icons rather than working on the real problem; and sec-
ond, make sure that cursor movement is fairly steady. Since users
will infer that the turn of a cursor means work is being done, non-
spinning is taken to mean that the computer is doing something
else (although in reality, exactly the opposite is usually the case).
Finally, progress bars are essential for any wait of 20 seconds or
longer. A progress bar tells users where they stand, shows concrete
movement, and gives them an indication of how long they have to
wait. Remember, users who can see steady progress while waiting
for an hour generally report less anxiety than users who have to
wait with no feedback for fifty minutes.
Till next time,
Doc
AppleLink: THE.DOKTOR
Author’s note: I’d like to thank Bill Fernandez and Bruce Tognazz-
ini for many of the ideas on which this article is based; also “Dr.
Bob” Glass, whom I first heard proclaim, “Speed is an interface
issue.”
Pete Bickford is a member of the Apple Business Systems human
interface team.

Reading notes: Running header 'Technology 13' and 'Apple Directions' appear as section labels rather than the primary heading

Printed product names: Macintosh · System 7

Languages: English

[Original PDF page 13](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=13)

### PDF page 14

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-a961fc0e9c794f027d6548d6c9937fa366ccfb3c3dd0c9db45ccadc820162fac)

Understanding the Power Macintosh Architecture, Part Two: A Skeleton Key to Mixed-Mode Issues

Transcribed text:

14   Technology
M   A   Y   1   9   9   4
Apple Directions
Understanding the Power Macintosh
Architecture, Part Two: A Skeleton Key
to Mixed-Mode Issues
By Gregg Williams
Apple Directions   staff
Learning to program in a new
environment is often difficult
because you’re faced with the gap
between “what” and “how”—
you’re given a large body of infor-
mation in the form of documenta-
tion (the “what”) and you have to
translate that information into a
plan for getting your task accom-
plished (the “how”). Often, a
programmer’s first steps involve a
lot of trial-and-error programming,
which is both costly and ineffi-
cient. The more “how” informa-
tion you have, the more produc-
tive you’re going to be. But there
are two flavors of “how,” and you
will be the most productive when
you know both how to get your
task accomplished and how the
underlying technology works.
Last month, I gave an overview
of the Power Macintosh architec-
ture, which will be sufficient for
many readers. However, if you’re
going to be programming Power
Macintosh computers or managing
people who will be doing so (or if,
like me, you’re just fascinated by
technology), you’ll probably benefit
from reading this article. The defini-
tive word on how Power Macintosh
software works is still   Inside Macin-
tosh: PowerPC System Software,
and you should go there for details
beyond the ones I give in this arti-
cle. (That document is on the April
1994 Developer CD and is also
available through APDA. See the
first part of this article, in the April
1994 issue of   Apple Directions,   for
more details.)
Be warned:   This article is
very technical. You may not be
interested in the technical details.
Even if you are, you will probably
not understand everything on the
first or even subsequent readings;
believe me,   I   didn’t.
The Implications of
Mixed-Mode Software
In the past ten years, developers
have written millions of lines of
code for 680x0 Macintosh comput-
ers. Apple’s commitment to back-
ward compatibility dictated that the
Power Macintosh computer run
yesterday’s, today’s, and tomor-
row’s 680x0 Macintosh software.
And it does, through its 68LC040
Emulator software, which allows
the PowerPC processor to execute
Motorola 68LC040 instructions.
For various technical and com-
patibility reasons, parts of Macin-
tosh system software remain in
680x0 code, while others are in
PowerPC code. This means that
every Power Macintosh computer
is switching, as needed, between
executing 680x0 and PowerPC
code. Consider some of the diffi-
culties this presents:
• Existing 680x0 software has
to run correctly without modifica-
tion, even though some of the
system software routines it calls are
implemented in PowerPC code.
• The 680x0 and PowerPC
processors pass arguments to
routines in different ways; the
Power Macintosh architecture
must somehow accommodate
these differences.
• System software routines
currently implemented as 680x0
code may, in later Power Macin-
tosh system software, be convert-
ed to PowerPC code. Both exist-
ing and new Macintosh software
must always run correctly, even if
the implementations of some
system software routines change.
A new manager in system
software, the Mixed Mode Manag-
er, handles all this, with amazing
success. Because of it and other
parts of Power Macintosh system
software, you can continue—in
large part—to create Macintosh
programs like you always have.
However, in a few situations
you must program differently (or,
if you’re porting existing code,
you must change your source
code). To know what code needs
to be changed, you must first
understand how the Mixed Mode
Manager handles switching
between the 680x0 and PowerPC
instruction sets.
Mixing Modes
When your program (either 680x0
or PowerPC code) calls a system
software routine (in either 680x0
or PowerPC code), four possible
combinations exist (as shown in
“Execution of mixed-mode code”
on page 15). Let’s see how the
Power Macintosh architecture
handles each of them.
The easiest case is 680x0
code calling a 680x0 system
software routine: The 68LC040
Emulator stays in control and
emulates the trap dispatch
mechanism you’re already famil-
iar with—that way, existing
680x0 code runs without modifi-
cation. (For the purposes of this
explanation, you can say that
when a system software routine
executes, it encounters a special
A-line trap instruction that looks
up the address of its code in a
table called the   trap dispatch
table   and begins executing the
code at that address.)
The second case occurs when
PowerPC code calls a system
software routine that is imple-
mented in 680x0 code. The Pow-
erPC compiler/linker takes the
source code and ties it to “glue”
code (provided by Apple) that
exists in a shared library. When
executed, this glue code
• takes care of various house-
keeping details
• determines the address of
the 680x0 routine
• switches mode by executing
the routine using CallUni-
versalProc (which I’ll discuss
later)
This may not mean much to
you now, but the important thing
to remember is that you write the
same line of source code as you
did for 680x0 Macintosh comput-
ers, and the Power Macintosh
architecture and compiler “do the
right thing.” This glue code
involves the Mixed Mode Manag-
er, which executes the 680x0
routine (using the 68LC040 Emu-
lator) and then allows the Power-
PC processor to continue execut-
ing PowerPC instructions.
Enter the Routine
Descriptor, Stage Left
The third case, 680x0 code calling
a system software routine imple-
mented in PowerPC code, is
where things get really interest-
ing. To describe this, I first need
to explain the existence of a
much-misunderstood part of the
Power Macintosh software archi-
tecture, the routine descriptor.

Reading notes: Possible hyphenation artifacts from column line breaks in body text, such as 'infor-mation' and 'documenta-tion'.

Printed product names: Power Macintosh · Apple Directions · Macintosh · PowerPC · 68LC040 Emulator · Mixed Mode Manager · APDA

Printed dates: April 1994

Languages: English

[Original PDF page 14](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=14)

### PDF page 15

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-621733194f7d9ce1d94d7978417be27e879569ba7468730dd365f7304cb26979)

Transcribed text:

Technology   15
M   A   Y   1   9   9   4
Apple Directions
Given that 680x0 code had to
run without modification, the
Power Macintosh engineers had
to decide what to do with a sys-
tem software routine written in
PowerPC code. After all, they
couldn’t just let the 68LC040
Emulator plow through it, trying
to execute it as if it were 680x0
code. They decided that, since no
base of existing Power Macintosh
code forced any compatibility
limitations, they had a bit more
slack in deciding how to solve this
problem. Once they defined how
Power Macintosh code must be
written, everyone would have to
follow their guidelines.
The answer that the Power
Macintosh engineers came up
with was to give certain routines
an associated data structure called
a   routine descriptor,   which gives
the Mixed Mode Manager the
information it needs to work with
this routine (including a pointer
to the actual routine). The begin-
ning of the routine descriptor
data structure is actually an A-line
trap instruction. When the
68LC040 Emulator encounters
this trap, it passes execution to
the Mixed Mode Manager. The
Mixed Mode Manager switches to
PowerPC mode, lets the PowerPC
routine execute, then returns
control to the 68LC040 Emulator.
With this solution, the value that
needs to be in the trap dispatch
table is not the routine’s address
but the   address of its routine
descriptor.
Enter the Universal Proce-
dure Pointer, Stage Right
This sets the stage for the fourth
and final code-calling/routine-
called combination: PowerPC
code calling a system software
routine written in PowerPC code.
You’d think this case would be as
simple as that of 680x0 code
calling a 680x0 system software
routine. But   nooooo. . . .
To accommodate the case of
680x0 code calling a system soft-
ware routine written in PowerPC
code, the Power Macintosh engi-
neers had to put the address of
the routine descriptor into the
trap dispatch table. But guess
what? In this last case (PowerPC/
PowerPC), the PowerPC proces-
sor can’t directly execute the
routine descriptor.
This case is resolved in the
same way as was the second case,
described earlier. The PowerPC
compiler/linker takes the source
code and ties it to the same
“glue” code that was described
earlier. (This code is “smart” and
knows what to do in each situa-
tion.) In this case, the glue code
calls CallUniversalProc, which
looks at the routine descriptor,
sees that the code is PowerPC
code, and calls it directly. Whew!
Okay, that’s what actually
happens. Now it’s time to add
one final detail, one that doesn’t
change anything I’ve just
described but   simplifies   how you
think about PowerPC software.
(I’m told that many Power Macin-
tosh developers have had trouble
with this concept—I know   I   did—
so understanding it now will save
you a lot of grief later.)
Apple engineers named the
values that are stored in the trap
dispatch table   universal proce-
dure pointers,   or   UPPs.   In gener-
al, when writing source code for
Power Macintosh computers, you
will use universal procedure
pointers, not procedure point-
ers—and this fact is part of an
overall design that minimizes the
number of places you have to
write code differently from
pre–Power Macintosh days.
Read the next two sentences
until you understand them (or
until you have them memorized,
whichever comes first).   If a rou-
tine is written in 680x0 code, its
universal procedure pointer is a
pointer to 680x0 code—that is, a
pointer to the beginning of the
routine. If a routine is written in
PowerPC code, its universal proce-
dure pointer is a pointer not to the
beginning of the routine but to its
routine descriptor . (The figure
“Universal procedure pointers” on
page 17 illustrates this concept. As
it turns out, a PowerPC routine
descriptor points to something
called a transition vector, which in
turn points to the PowerPC code.
For more information on the tran-
sition vector, see   Inside Macintosh:
PowerPC System Software,   pages 1-
26 and 2-5.)
Aside from being interesting in
their own right, the explanations
in this section introduce two key
concepts, the routine descriptor
and the universal procedure
pointer. You need to understand
both of these before you can
answer the question “How do I
know what code needs to be
written differently for Power Mac-
intosh computers?”
Dealing With
External Code
If you were writing either 680x0
code that calls only 680x0 code or
PowerPC code that calls only
PowerPC code, you’d never have
to worry about routine descrip-
tors or universal procedure point-
ers. However, there are several
situations in which your code
must call   external code —that is,
code that is not directly contained
in the code you are writing:
• You call a trap.
• You call a device driver.
• You use the address of a
routine, but you don’t know
the instruction set of rou-
tine’s code.
• You load and execute code
from a resource.
Code
making
call
PowerPC   680x0   PowerPC
System
software
routine
being
called
680x0
680x0   680x0   PowerPC PowerPC
PowerPC processor running
68LC040 Emulator
PowerPC processor
executing directly
Mixed Mode Manager
Execution of mixed-mode code. In three cases out of four, the Mixed Mode Manager is involved
when code from your program calls a system software routine in a Power Macintosh computer.

Printed dates: M A Y 1 9 9 4

Languages: English

[Original PDF page 15](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=15)

### PDF page 16

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-45f71afdfdd3951bdd40539d633c0051372a4adf9937283c06ef5461b8d9145a)

Passing Procedure Pointers

Transcribed text:

16   Technology
M   A   Y   1   9   9   4
Apple Directions
Power Macintosh system soft-
ware takes care of the first two
cases automatically. In the last
two cases, you’ll probably have to
write your code differently from
before, and that’s what the rest of
this article is about.
Passing Procedure
Pointers
You can’t write a Macintosh pro-
gram from scratch without pass-
ing procedure pointers (that is,
specifying a procedure by its
address, then letting some other
software routine call it using that
address). Procedure pointers are
used in several contexts:
• A handful of system calls use
procedure pointers: for example,
ModalDialog (which handles
events when you display a modal
dialog box) and TrackControl
(which responds to mouse move-
ment when the user has clicked a
control).
• The fields of some records
use them: for example, the con-
trlAction field of a ControlRecord
(a record that is associated with a
button, checkbox, scroll bar, or
other control).
• Some system global vari-
ables use them: for example,
MBarHook (a routine that is
called repeatedly while the mouse
button is held down over a
menu).
You need to be concerned
about passing procedure pointers
in two cases. The first occurs
when you write source code that
will be compiled to native Power-
PC code. The second occurs
when you write source code that
will be compiled to 680x0 code.
Wait a minute! Didn’t I say
earlier that you should write pro-
grams the same as always if they’re
going to be compiled to 680x0
code? Strictly speaking, that’s true.
But Apple encourages you to
write your source code as
described in the sections that
follow. It’s not that much extra
work, and doing so brings you
considerably closer to having one
source-code file that you can com-
pile to run on either the 680x0 or
PowerPC processor. Depending on
your situation, making your source
code “friendly” to both compilers
may result in a larger market for
your program.
Universal Header Files
and ProcInfo Values
Like the pre–Power Macintosh
header files, universal header files
contain information about the
Macintosh architecture that must
be present when you compile your
source code. Universal header
files, however, contain additional
information that allows you to use
them regardless of whether you’re
compiling your software to 680x0
or PowerPC code.
You must use the universal
header files if you are compiling
to PowerPC code.   You should
also use them for existing 680x0-
based software; doing so puts
you one step closer to having
source code you can compile to
either processor. (See page 25 of
develop   issue 16 [December
1993] for details on how univer-
sal header files, also called   uni-
versal interface files,   differ from
their predecessors.)
Before you can create a univer-
sal procedure pointer or call the
routine it points to, you need to
construct the routine’s procInfo
(short for   procedure informa-
tion)   value. The main reason for
the procInfo value is that the
PowerPC processor passes para-
meters in one way, but 680x0
routines pass parameters in no
fewer than five different ways (not
including additional special
cases). The procInfo value
encodes essential information
about a routine’s calling conven-
tions (and other characteristics).
The Mixed Mode Manager uses
this value to translate the passed
parameters between the 680x0
and PowerPC architectures when
a mixed-mode call occurs.
When you use the universal
header files, you must change
existing source code to use uni-
versal procedure pointers instead
of procedure pointers. (The same
is true if you’re writing new
source code.) The universal head-
er files contain conditional state-
ments that do different things
based on whether you’re compil-
ing for the 680x0 or the PowerPC
processor. For the former, these
statements rewrite your source
code to be the source code you
would have written for a
pre–Power Macintosh program.
For the latter, these statements
calculate the procInfo value for
you and hide the mechanics of
creating a universal procedure
pointer and calling the routine
from it. For the knock-down,
drag-out details of exactly what
happens see the file “Inside the
Univ Hdr Files,” located on
AppleLink, pathname Developer
Support:Developer Services:Peri-
odicals:Apple Directions:Apple
Directions May 1994.
(Note: The previous paragraph
pertains to source code written in
C or C++. You may have to
code differently if you are writing
PowerPC code in Pascal, FOR-
TRAN, or some other language.)
Learning by Example
Let’s look at an example of what
you need to do to change a sys-
tem software call that passes a
procedure as one of its parame-
ters. I’ll use the system software
routine ModalDialog, one para-
meter of which is a pointer to a
procedure (call it myFilterProc)
that handles certain events that
occur while the modal dialog box
is visible.
In existing, pre–Power Macin-
tosh C code, you’d call this rou-
tine as follows:
ModalDialog
(myFilterProc, &itemHit);
To change this code to use a
universal procedure pointer
instead of the procedure pointer
myFilterProc, here’s what you do:
• Look in the Dialogs.h uni-
versal header file.
• Find the definition for
ModalDialog; you’ll find that
it expects a parameter of
type ModalFilterUPP. (The
letters UPP remind you this
data type represents a uni-
versal procedure pointer.)
• Find the macro that defines
a new modal filter universal
procedure pointer—in this
case, it’s called NewModal-
FilterProc.
• Add a line of code that uses
NewModalFilterProc to
convert myFilterProc to a
universal procedure pointer.
• Finally, in the existing call to
ModalDialog, substitute the
new universal procedure
pointer for the original
procedure pointer,
myFilterProc.
Your final code, which will
compile correctly for both the
680x0 and PowerPC processors,
will look like this:
MyFilterProcUPP =
NewModalFilterProc
(myFilterProc);
ModalDialog
(MyFilterProcUPP,
&itemHit);
The above code creates a
routine descriptor, which takes up
a non-relocatable block in the
current heap. Since your applica-
tion may create a lot of routine
descriptors, you may want to
dispose of them immediately. To
do this, you’d add another line of
code to the above code:
DisposeRoutineDescrip-
tor(MyFilterProcUPP);
Pages 2-21 and 2-22 of
Inside Macintosh: PowerPC
System Software   describe this
and an alternate way of dealing
with deallocating routine
descriptors.

Reading notes: Spaced-out letters in the masthead date line 'M A Y 1 9 9 4' may reflect layout rather than spelling

Printed dates: M A Y 1 9 9 4 · May 1994 · December 1993

Languages: English

[Original PDF page 16](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=16)

### PDF page 17

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-096f435bffd590c6d9933c6ba1c14da507186819b058b5bbadc7facd021569cf)

Transcribed text:

Technology   17
M   A   Y   1   9   9   4
Apple Directions
In a similar vein, you can call
the modal-dialog filter procedure
itself by using another macro
defined in Dialogs.h, CallModalFil-
terPointer, passing it MyFilter-
ProcUPP. See the Dialogs.h file for
details.
Converting Your Source
Code to Universal Proce-
dure Pointers
To generalize the above steps,
here’s how you change any system
software call that passes a proce-
dure pointer as a parameter:
• In the universal header file
for the system software
routine, find the correspond-
ing new routine that changes
the procedure pointer to a
universal procedure pointer.
• In your code, use this rou-
tine to convert your proce-
dure pointer to the appropri-
ate universal procedure
pointer.
• Call the system software
routine using the universal
procedure pointer you’ve
just created (instead of the
procedure pointer).
One of the things the universal
header files do for you is to define
the procInfo values for proce-
dures whose parameters are
known to Macintosh system soft-
ware (in the example earlier, the
modal-dialog filter procedure).
However, if you write a rou-
tine that passes a procedure that
Macintosh system software
doesn’t know about, you must
construct the procInfo value for
the procedure yourself. (For
details, see page 2-14, “Specify-
ing Procedure Information,” in
Inside Macintosh: PowerPC
System Software. ) You then use
this value when you create the
procedure’s universal procedure
pointer (using the procedure
NewRoutineDescriptor) and
when you call the routine (using
CallUniversalProc). To streamline
this process, you may want to
duplicate the functionality of the
glue code in the universal head-
er files that takes care of such
details for you.
Executing Code From
Resources
The second situation where you
may have to change existing
source code (or write new code
differently) occurs when you load
object code into memory from a
resource and then execute it.
Fortunately, because I’ve already
covered most of the concepts you
need to understand, this section is
easier to explain.
You have to look at the situa-
tion of executing code from
resources from two different
points of view: what you need to
do if you’re creating the resource,
and what you need to do if your
program is calling a resource.
Private and Accelerated
Resources
If you’re creating a resource that
contains 680x0 code, you do it as
you normally would. As I said
earlier, existing 680x0 code—
including code in resources—must
continue to work as is.
Resources containing PowerPC
code divide into two categories:
private resources   and   accelerated
resources.   Private resources con-
tain code that is used by your
PowerPC program only. Because
the conditions under which the
code will be executed are known
and because you have PowerPC
code calling more PowerPC code,
you don’t need a routine descrip-
tor, and calling this code doesn’t
involve the Mixed Mode Manager.
Your program can simply load the
resource into memory, use the
Code Fragment Manager to pre-
pare the fragment for execution,
and execute it directly. However,
Apple discourages the use of
private resources; one reason is
that they are not handled by file
mapping (see last month’s article
for details) and so decrease the
effectiveness of Power Macintosh
virtual memory.
Accelerated resources are a
different matter. An accelerated
resource is any resource containing
PowerPC code that has a single
entry point and mirrors the behav-
ior of a 680x0 resource. The great
thing about an accelerated resource
is that you can substitute one for its
680x0 equivalent, and existing code
that uses that resource continues to
work without modification. In
some situations, replacing a 680x0
resource with an accelerated
resource is a good way of speeding
up existing software. Resources
that you might consider accelerat-
ing include HyperCard XCMD
Source code for a
Macintosh program
Trap
dispatch
table
ATrapInPowerPC ()
ATrapInPowerPC ()
MIXD
lgaz
ieak
brfc
rbwi
eisl
glin
Routine
descriptor
sorn
dkls
fasl
dfjj
lasd
asjf
sela
680x0
routine
dklw
flei
Transition
vector
jlsf
jien
fnve
wnue
sjfu
yeun
bvsd
PowerPC
routine
Power Macintosh system software
Universal procedure
pointers
Normal pointers
Universal procedure pointers. In Power Macintosh computers, universal procedure pointers
(UPPs) replace the procedure pointers used in 680x0 Macintosh computers whenever use of the
pointer might require a mode switch. A UPP for a PowerPC routine points to its routine descrip-
tor (see text for details), but a UPP for a 680x0 routine is exactly the same procedure pointer as
it would be in a 680x0 Macintosh computer. The shading indicates that the beginning of the
routine descriptor is an A-line trap instruction that, when executed, transfers control to the
Mixeed Mode Manager.

Reading notes: Heading 'Technology 17' and 'M A Y 1 9 9 4' appear as running header; printed date rendered with letter spacing

Printed dates: M A Y 1 9 9 4

Languages: English

[Original PDF page 17](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=17)

### PDF page 18

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-8c4a1ce5146cd0ae867f7dfb43963cd7d5372257195a00eaeeb1d4bd268b2ef7)

Transcribed text:

18   Technology
M   A   Y   1   9   9   4
Apple Directions
extensions and menu, control,
window, and list definition proce-
dures (which are stored in 'MDEF',
'CDEF', 'WDEF', and 'LDEF'
resources, respectively).
However, accelerated
resources, like private resources,
are also not handled by file map-
ping. Because of this, you may
want to package your routine as a
PowerPC shared library, either
appended to the application’s data
fork or placed in another file. In
this way, your routine will benefit
from file mapping.
Creating and Calling
Resources
With the exception of private
resources (which don’t need
routine descriptors), here are the
rules to follow when you create
executable resources (see also the
table “Executing code from a
resource,” on this page):
• For 680x0 resources, create
them as you normally would in
the 680x0 world.
• For PowerPC resources, add
a routine descriptor to the head
of the resource.   (To do this, use
the Rez resource compiler utility
and templates found in the Mixed-
Mode.r file.)
When you write code that
loads a resource into memory and
calls it, you should follow the
following rules:
• For 680x0 code calling a
resource, you load the resource
into memory and call it the way
you always have.
If the routine called is 680x0
code, the 68LC040 Emulator
jumps to the beginning of the
routine and starts executing it as
680x0 code. If the routine called
is PowerPC code, the 68LC040
Emulator jumps to the beginning
of it (which is a routine descrip-
tor) and executes the A-line
instruction that hands control
over to the Mixed Mode Manager.
The Mixed Mode Manager calls
the Code Fragment Manager to
prepare the code fragment for
execution. Then the Mixed Mode
Manager handles the execution
of the PowerPC routine and
returns control to the 68LC040
Emulator.
• For PowerPC code calling a
resource, you must load the
resource into memory and then
call it with the routine CallUni-
versalProc.   Note that CallUniver-
salProc requires a universal proce-
dure pointer and its corresponding
procInfo value. (As stated before,
this excludes private resources,
which need no universal proce-
dure pointer.)
If the routine called is 680x0
code, CallUniversalProc invokes
the Mixed Mode Manager, which
causes the 68LC040 Emulator to
execute the 680x0 code and then
returns control to the PowerPC
processor. If the routine called is
PowerPC code, CallUniversalProc
causes the Mixed Mode Manager
to call the Code Fragment Manag-
er (to prepare the fragment and
return the entry point) and then
to allow the PowerPC processor to
begin executing the routine at its
entry point.
Conclusions
Sometimes you have to know a lot
to know what doesn’t need doing.
I think that’s the case here; you
have to know a lot about what
goes on inside Power Macintosh
computers before you can under-
stand why there’s not that much
you need to do differently. Again,
let me reemphasize that   Inside
Macintosh: PowerPC System
Software   is the one document
that whoever’s doing the pro-
gramming needs to read and
know thoroughly.
If you’re making the decisions
about porting existing code,
writing new native (PowerPC
processor–based) applications,
or creating one set of source
code that you can use to create
both 680x0-based and PowerPC
processor–based applications, all
you need to know is that writing
code for the PowerPC processor
isn’t all that different from what
you (or your programmers) have
been doing all along. Program-
mers’ current skills aren’t obso-
lete, and they don’t need major
retraining to make the transition
to the PowerPC world.
Experience bears this conclu-
sion out. Early PowerPC develop-
ers, who were working with pre-
release development tools and
minimal documentation, report
that they took anywhere from a
few days to a few weeks to con-
vert existing C programs to run on
Power Macintosh computers. One
rule of thumb that I heard is to
consider the conversion of an
application to PowerPC to be
roughly equivalent to a “0.5”
revision—for example, from Sur-
fWriter 2.0 to SurfWriter 2.5.
If you’re developing from
scratch, a native Power Macintosh
application shouldn’t be any hard-
er to write than a traditional Mac-
intosh application. In fact, numer-
ous Power Macintosh features—
like import libraries and global
variables for non-application code
fragments—make programming
easier and should partially offset
any other overhead that program-
ming for Power Macintosh might
add.
Of course, porting existing
applications to Power Macintosh
computers just keeps your foot in
the door. People will be buying
Power Macintosh computers in
record numbers (see Pieter Hart-
sook’s projected Power Macin-
tosh sales figures in last month’s
issue, pages 29–36, for an inde-
pendent analyst’s estimates), and
they will be hungry for applica-
tions that do new things that were
impossible before the Power
Macintosh computers arrived.
Porting an existing application to
Power Macintosh computers will
give you enough breathing room
for you to develop a competitive,
native application.
Or look at it this way. The
Macintosh Plus of the future (that
is, the baseline, minimum com-
puter that your software might
Executing code from a resource. Often, you want to put executable code in a resource, then
load it into memory and execute it. This table tells you how to create the resource and how to
call it in the mixed instruction-set environment of Power Macintosh computers.
When writing a resource...
When writing the calling
code...
...in 680x0 code
Code as you normally would for
680x0 Macintosh computers
Load it into memory using
GetResource, then call the rou-
tine as you normally would for
680x0 Macintosh computers
...in PowerPC code
Add a routine descriptor to the
resource
Load it into memory using
GetResource, then call the rou-
tine using CallUniversalProc
(accelerated resources only)

Reading notes: Running page header and article layout order may interleave columns in the table section.

Printed product names: Power Macintosh · Inside Macintosh: PowerPC System Software · SurfWriter 2.5 · Macintosh Plus

Printed dates: M A Y 1 9 9 4

Languages: English

[Original PDF page 18](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=18)

### PDF page 19

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-18ed5336653edf956c9a611c9efed7e0694438fc82b15ccdaebace9a0fdc40c6)

Transcribed text:

Technology   19
M   A   Y   1   9   9   4
Apple Directions
projects, in which manually adding and seg-
menting the project would be tiresome or
impractical.
Convert•Projects is   not   a source code
converter. If your code uses nonportable
constructs that aren’t supported by the Code
Warrior compilers, you’ll need to manually
change your code.
Note:   This is   not   an Apple product. It is
provided on an “as is” basis. Apple is not
responsible for any problems you may
encounter in its use.
Developer Notes Update May 94
Included here are a new developer note
describing the Macintosh DAV interface for
NuBus expansion cards and a corrected ver-
sion of the Power Macintosh developer note
that first appeared in April 1994.
The   Macintosh DAV Interface for NuBus
Expansion Cards   developer note describes
the electrical interface for digital audio and
video signals that Macintosh AV computers
provide for NuBus expansion cards.
The   Power Macintosh Computers   develop-
er note first appeared on the April Developer
CD. The new version on this month’s CD
contains minor text and art changes.
Even More System Software
This is a temporary folder, containing some
system software items we couldn’t fit on the
April 1994 Developer CD and others that have
been lurking on the Tool Chest CD before
being moved to the System Software CD. The
updated contents of this folder will appear in
their proper places on the July 1994 System
Software CD.
Inside Macintosh: PowerPC
Numerics
This book describes the floating-point numer-
ics provided with the first release of the Pow-
erPC processor–based Macintosh computers.
It provides a description of the IEEE Standard
754 for floating-point arithmetic and shows
how PowerPC numerics complies with it. The
book also shows how to create floating-point
values and how to perform operations on
floating-point values in high-level languages.
Mac Application Environment
Macintosh Application Environment (MAE)—
the virtual Macintosh for open systems—is an
innovative software product for users of RISC-
based UNIX workstations. This folder contains
product information about MAE, as well as
information about the MAE ISV Partnership
Program to help Macintosh developers to
penetrate the UNIX market with Macintosh
applications. For more information on Macin-
tosh Application Environment, see the news
story on page 10.
Newton Sample Code 1.0
This folder contains Newton Q&A documents
(in both DocViewer and Microsoft Word for-
mats); sample code compatible with the New-
ton MessagePad, Newton MessagePad 100 and
110, and Sharp ExpertPad; and several articles
on Newton development. Each Newton pro-
ject includes a text file containing the project’s
source code (for curious programmers who
don’t have the Newton Toolkit).
ShowDialogBoxes Version 2.1
ShowDialogBoxes allows you to display an
application’s dialog boxes, alerts, and cool-
Alerts. It requires an associated script file that
specifies the relationships between the text and
the dialog boxes. Version 2.1 adds support for
displaying coolAlerts under QuickDraw GX.
SWAt 2.0b5
SWAt is a tool that allows you to set several
attributes of all Finder-related windows on a
hard disk. The attributes currently config-
urable with SWAt are home window position,
window stagger, uniform window dimensions,
scroll bar position, and folder labels. This
tool is designed to assist CD producers in
presenting a uniform look to all windows in
the Finder.
Verifier 1.0
The Verifier is an Apple internal localization
verification tool. It is used to catch localization
problems, such as corrupted CODE resources
and mismatched resource attribute bits. It is
customized to Apple’s internal needs, but it
may help you determine problems to look out
for when you localize your software.
ZoneRanger 1.0.0
ZoneRanger is a freeware utility that provides
detailed information about each heap zone
that is active on the Macintosh computer. This
information includes both the counts and
total sizes of the free blocks, pointers, han-
dles, locked handles, and resource handles in
each heap zone.
Note:   This is   not   an Apple product. It is
provided on an “as is” basis. Apple is not
responsible for any problems you may
encounter in its use.
Next Month
A new artist, a new   Inside Macintosh   volume
or two, and, perhaps, a new QuickDraw GX
version.
Until then. . . .
Alex Dosher
Developer CD Leader
CD Highlights
continued from page 11
run on) will have a 60 MHz Pow-
erPC 601 RISC processor, 8 MB of
memory, built-in Ethernet,
speech recognition and text-to-
speech, the built-in ability to read
and write DOS and Windows
disks, and the numerous other
features already standard on
today’s System 7 Macintosh com-
puters. That’s the   minimum.   So
my question to you is: Do you
have any idea what you can do
with that?   ¨
Editor’s note: My thanks go to
two Power Macintosh computer
engineers, Alan Lillich and Mikey
McDougall, who worked with me
and reviewed both parts of this
article. Mikey deserves special
thanks for the considerable time
he spent explaining the Mixed
Mode Manager (again and
again) until I fully understood it.
For a demonstration of the
four combinations involved in
calling and loading resources,
try using the example program
ModApp. You can find this pro-
gram in the Macintosh on RISC
Software Development Kit (avail-
able from APDA) and Metro-
werks CodeWarrior Gold (Avail-
able from APDA or Metrowerks).
Also, the Graphing Calculator
mentioned in part 1 of this arti-
cle is located in the Apple Extras
folder at the top level of the
Power Macintosh hard disk (not
in the Apple menu).

Reading notes: Headline is ambiguous: 'Apple Directions' is a section label rather than a clear primary heading. Mixed reading order from multi-column layout with a 'continued from page 11' jump. Some product names such as 'Code Warrior' appear without consistent spelling elsewhere in the copy.

Printed product names: Macintosh DAV Interface for NuBus Expansion Cards · Power Macintosh Computers · Inside Macintosh: PowerPC Numerics · Mac Application Environment · Newton Sample Code 1.0 · ShowDialogBoxes Version 2.1 · SWAt 2.0b5 · Verifier 1.0 · ZoneRanger 1.0.0 · Macintosh Application Environment (MAE) · Newton MessagePad · Newton MessagePad 100 · Sharp ExpertPad · Code Warrior · Macintosh on RISC Software Development Kit · Graphing Calculator · Mixed Mode Manager · ModApp · Tool Chest CD · System Software CD

Printed dates: April 1994 · July 1994

Languages: English

[Original PDF page 19](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=19)

### PDF page 20

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-cf2f61428ab0197e79b312d5a8a867df4d66d32ebcac9d035af6bc5766f37392)

Transcribed text:

20   Business & Marketing
M   A   Y   1   9   9   4
Apple Directions
You just can’t pick up a business publication
these days without reading one of today’s
high-tech buzz words:   multimedia.   The con-
cept of multimedia is neither radical nor new.
It simply means the electronic publication of
materials using several types of data, including
text, graphics, animation, video, and sound,
generally in CD-ROM format. The term, how-
ever, has taken on greater significance as more
and more companies have jumped on the
electronic publishing bandwagon.
To help you understand the significance
and future directions of this burgeoning mar-
ket, this month Market Research Monthly
provides data that originally appeared in the
CD-ROM Market Segmentation and Buyer
Profile Report,   published earlier this year by
Apple Computer, Inc.
The data, presented in the graph “Multime-
dia Market, Today and Tomorrow,” suggests
that if you’re not developing multimedia
products—either the devices for creating or
reading content/titles, materials teaching oth-
ers to create or read content/titles, or the
content/titles themselves—you may want to
think about entering the potentially huge
market for them. Once you’re in that market,
you’ll want to tailor your products to meet
changes in customers’ needs and, especially,
to reach what’s expected to be a gigantic con-
sumer multimedia market.
According to the market research firm
Market Vision, Inc., cited in the report, the
worldwide market for multimedia products,
including hardware and software, will grow to
nearly $24 billion by 1997, up from $1.4 billion
in 1992.
All segments of the market will undergo
dramatic growth: Multimedia revenues in the so-
called “dedicated professionals” segment—that
is, people who use computers for design, print
and other visual production, and visual arts—will
Market Research Monthly
Business & Marketing
Multimedia Market: Consumers
to Take Center Stage
$742
$252
$210
$210
$1,912
$15,535
$1,195
$5,019
Dedicated professionals
Business users
Educational users
Home computer users
1992   1997
How to Order
The High-Tech
Marketing
Companion
In recent issues we’ve told you about a new
book,   The High-Tech Marketing Companion:
Expert Advice on Marketing to Macintosh
and Other PC Users.   In this book, by Dee
Kiamy and the editors of   Apple Directions,
leading developers and industry experts
describe practical techniques for solving busi-
ness and marketing problems.
Due to popular demand, the book is now
available by mail order from Computer Outfit-
ters (formerly Mac’s Place). To order, call 800-
260-0009 (U.S and Canada) or 406-758-8000
(all other countries) and ask for   The High-Tech
Marketing Companion,   product #7272. The
price is $18.95 plus shipping and handling
(plus tax if delivered to an Ohio address), a
discount off the cover price. The book is also
available at major bookstore chains in the
United States and Canada.
Here’s a sampling of what you can expect
to read about in this book:
• how to avoid the ten most common
product launch mistakes
• a step-by-step process for choosing and
sticking with the best target market
• proven techniques for improving the
number and kind of product reviews you get;
how to deal with unfair reviews
• a systematic plan for choosing the right
name for your product.
• developing packaging that helps your
product stand out on the dealer’s shelf
• creating demos that sell—when you can’t
be there
• techniques for getting and holding the
attention of a national distributor
For a copy of the table of contents, call
Dee Kiamy at Open Door Communications
(408-266-9699) and leave your name and fax
number, or send an AppleLink message to
KIAMY.   ¨
Source: Market Vision, Inc.
$ in millions (000,000)
Multimedia Market, Today and Tomorrow

Reading notes: Bar chart values in the 'Multimedia Market, Today and Tomorrow' graph are listed without clear mapping to segments and years. Reading order of the graph labels and figures is uncertain.

Printed product names: The High-Tech Marketing Companion · Expert Advice on Marketing to Macintosh and Other PC Users · Multimedia Market, Today and Tomorrow · CD-ROM Market Segmentation and Buyer Profile Report

Printed prices: $24 billion · $1.4 billion · $742 · $252 · $210 · $1,912 · $15,535 · $1,195 · $5,019 · $18.95

Printed dates: M A Y 1 9 9 4 · 1992 · 1997

Languages: English

[Original PDF page 20](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=20)

### PDF page 21

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-81158aeaecf03ebc154183fa6efeecb947a48ba876abbb3d06cf57c38acc7fdb)

Expanding Your Market Through a Developer Program

Transcribed text:

Business & Marketing   21
M   A   Y   1   9   9   4
Apple Directions
By Mark Vernon, ACI US, Inc.
[Editor’s note: Even though you
may not need to establish your
own developer program, I urge
you to read this article. Much of
the advice and information ACI
offers applies to creating good
customer support programs in
general, and to developing rela-
tionships with customer groups
other than developers—such as
user groups, VARs (value-added
resellers), and other special-
interest customers.]
We all have a variety of cus-
tomer groups to attend to. And if
you sell products that lend them-
selves to third-party develop-
ment, you have a very special
group of customers to work with.
(Third parties are people who
use your products to create other
products of their own. To Apple
Computer, Inc., they are fourth-
parties.) These people are among
the most valuable customers you
can have, for reasons I’ll discuss
later. And you’ll likewise need to
give special thought to how you
work with and treat them.
Even if you’re a small company
whose resources are already
stretched thin, our experience is
that it’s especially important to
contact and begin supporting this
customer group as soon as possi-
ble. A great deal of ACI’s success
with 4th Dimension (also referred
to as 4D) hinges on the relation-
ships we’ve developed with our
third parties—something we
considered carefully from day
one, when the company was
quite small and not well known.
Although we started small, we’ve
built our developer program as
the company has grown.
The Payoff
If our experience is any example,
even though your company may
not have the resources to manage a
full-blown developer program, even
a modest investment of time and
effort can yield handsome rewards.
Here are several strategic payoffs
we’ve received from our investment
in a developer program:
• The program helps expand
our market by multiplying the
uses of our products.   When you
look at 4D simply as an end-user
database product, that’s one
mindset—one that could limit the
perception and use of our prod-
uct. But we (and our developers)
don’t perceive our applications as
only database products; we per-
ceive them as tools that develop-
ers use to create their own suc-
cessful products. Naturally, this
perception expands ACI’s overall
market.
• Working closely with devel-
opers helps increase the quality
of our products.   Our developers
give us a tremendous amount of
feedback about our products.
Likewise, they are a large group of
knowledgeable people who help
us solve problems, test our prod-
ucts, and create new applications.
Furthermore, since our devel-
opers are the first people outside
our company to receive beta
versions of products, they supple-
ment our efforts to find bugs and
solve other problems before a
product goes to market. This
feedback, in turn, results in fewer
user problems and more overall
customer satisfaction.
• Having an effective develop-
er program builds customer
confidence in our company and
products.   Customers see how
many products are based on 4D—
and how many companies stake
their livelihood on our applica-
tion. Our reputation is closely tied
to the reputations of our third
parties, and vice versa. This inter-
dependency creates a unique
relationship that benefits both
parties, and it significantly
enhances the market’s perception
of ACI’s stability and credibility.
• The developer program
creates an effective sales chan-
nel.   One of our developer pro-
grams that you’ll read about later
in this article is targeted at VARs.
Approximately 20 percent of our
total sales comes directly through
VARs, who resell our products.
These VARs have created their
own applications based on 4D
and related ACI software. Because
our VARs are focused on selling
the value of their unique, finished
applications, ACI is able to reach
new customers without creating
conflict with our dealer channel.
We look at it this way: Our
dealers make money by selling
4D as a general-purpose database
system. VARs, on the other hand,
create value-added products and
then act as a sales force to create
Expanding Your Market Through
a Developer Program
Developer Outlook
A Case Study of the ACI Experience
grow 157 percent. The general
business market for multimedia
products will be 18 times bigger in
1997 than it was in 1992, while the
educational multimedia market will
experience a four-fold increase.
The segment that will experi-
ence by far the largest amount of
growth will be the home multime-
dia market, which is expected to
increase nearly 72 times by 1997
from its 1992 size.
Expressed in more functionally
related terms, by late in the
decade, customers will be most
likely to use multimedia technolo-
gy for the following purposes:
• in business settings—for
presentations, communications,
and management-related tasks
• at home—for entertainment,
instruction, obtaining informa-
tion, and communicating
Many industry pundits point
out that the much-discussed
“information superhighway” may
cut into the multimedia market,
once the superhighway is in place.
Much of the multimedia content
available on today’s CDs will be
delivered over the information
highway, or so its advocates pre-
dict. However, few think that the
highway will be widely accessible
to many—especially to consumers
in the home market—before at
least the end of the decade. The
next several years, then, will pre-
sent a ripe opportunity for you if
you design the right consumer
multimedia products.
Apple’s   CD-ROM Market Seg-
mentation and Buyer Profile
Report,   which is full of valuable
information about the multimedia
market, is available to members of
the Apple Multimedia Program
(AMP) or as part of the Apple Mul-
timedia Information Mailing
through APDA. To join AMP, call
408-974-4897; APDA ordering
information appears on page 24.   ¨

Reading notes: Headline may combine a section title with the article title; primary heading taken as 'Expanding Your Market Through a Developer Program'.

Printed product names: 4D · 4th Dimension · Apple Multimedia Program · APDA

Printed dates: M A Y 1 9 9 4 · 1997 · 1992

Languages: English

[Original PDF page 21](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=21)

### PDF page 22

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-8dc90ffbe6d38c86eed037426d21d7ebfc2526176d284eda8f11d8e9058698c0)

Transcribed text:

22   Business & Marketing
M   A   Y   1   9   9   4
Apple Directions
demand for   and   sell those prod-
ucts. The more products they sell,
the more we sell.
• The developer program
helps us to be more effective in
other sales channels.   We do sell
our products through channels
other than VARs, but historically
we’ve tended to use other chan-
nels more as a fulfillment vehicle
for the demand that ACI spends
the money and other resources to
create. Recently, however, after
doing some analysis we selected
approximately 200 key dealers in
which to invest additional
resources. Working with each
dealer, we’ve either identified a
well-chosen dealer employee to
become an ACI developer, or
teamed the dealer with one or
more existing ACI developers.
The benefit is that customers may
find it attractive to purchase, from
a dealer, a complete hardware/
software solution that includes a
customized 4D application.
• The program creates differ-
entiation.   Having a strong devel-
oper program can be a key differ-
entiator in your overall
competitive picture. If you
demonstrate that you are commit-
ted to your product and markets
and that you’re in it for the long
haul, you’re more likely to attract
developers to your product. This
is especially important in highly
competitive product categories.
Developers stake their livelihoods
on your plans and success; after
they’ve made a substantial invest-
ment in learning your product
and developing their own data
and applications with it, they are
reluctant to change.
• The developer program
leverages and multiplies our
word-of-mouth efforts.   I believe
that the single most potent way to
sell software is by word of
mouth—one person talking to
another about a product. Word of
mouth is especially important if
you don’t have resources for
supporting a large advertising,
direct mail, or PR budget. When
we put our products into the
hands of developers—advanced
users, themselves—they become
a source of recommendations and
information to people who are
making buying decisions. There-
fore, our developer program
creates a base of experts and
influencers that significantly lever-
ages and multiplies our efforts to
spread the word about our prod-
ucts. And when those third-party
companies generate word-of-
mouth about their successful
products that are based on our
product, we reap some additional
benefit.
How Our Program
Is Structured
Today, we estimate there are 5,000
ACI developers worldwide, 3,200
of which are registered members
of our developer programs around
the world. However, in 1987 we
started out very modestly in the
United States with only a handful
of developer contacts.
When you’re a small company,
any positive contact you have
with developers—any support or
information you give them, any
perception that you create about
your commitment to them—will
go a long way. We started with a
one-size-fits-all approach that
included such things as offering
developers advance beta versions
of products and shipping them
final versions before we put prod-
ucts on the market. We also began
mailing developers technical tips
and offering some small-scale
training programs.
When we first started the pro-
gram in 1987—for a few months
before and after we first shipped
4D—developers who purchased
4D received our support for free.
Soon after that we instituted a
more formal program, which
developers joined for a fee.
(Today, it costs $895 to join one
of our programs.)
These simple, first steps
accomplished some important
things. They helped make
developers feel they were a valu-
able part of the ACI team. These
steps also helped bring develop-
ers up to speed on our products;
before a product hit the market,
developers were already knowl-
edgeable about it. This benefit
was particularly important
because developers represent
themselves to their customers as
being the source of information
about products. Indeed, in many
ways our developers   are   ACI.
As our company and developer
base grew, we began adding more
support elements, such as techni-
cal information mailings, training,
and other things. Likewise, the
resources we invest in this pro-
gram have increased. Initially, one
person in our company was
responsible for overseeing the
developer program. Now, three
people do that job in the United
States alone, supplemented by an
outside firm that helps manage
our annual developer conference.
These three staffers work closely
with other groups within the
company, particularly our engi-
neering department, which gener-
ates the technical information and
support for developers.
Today, a significant portion of
our marketing budget is allocated
to our developer program. We
support three kinds of develop-
ers: in-house corporate develop-
ers who create 4D-based products
solely for use in their own compa-
nies; consultants, who create
custom 4D databases for clients
on a contract basis (systems inte-
grators fit into this category); and
VARs, who use 4D to create new
applications for resale.
We’ve had to modify our initial
approach to accommodate the
different needs of each group.
(There is, of course, some over-
lap.) We now offer two programs:
The ACI Corporate Developers
Program for in-house developers,
and the ACI Professional Develop-
ers Program for consultants,
which gives a developer the fur-
ther option of becoming a VAR.
(By choosing to become a VAR, a
developer must also sign some
legal agreements that dictate the
terms of the resale relationship.)
While each program is tailored
to its audience, the basic compo-
nents of the programs are similar.
(For a more complete description
of what constitutes the ACI devel-
oper program, see the text box
“The Anatomy of a Developer
Support Program” on page 23.)
ACI Developers
on the Global Front
Because ACI is an international
company with subsidiaries in the
United States, France, the United
Kingdom, Germany, and Sweden
and has distributors in many
other countries, outside the Unit-
ed States we offer separate (but
similar) developer programs.
Wherever possible, we tailor
the content and language to the
needs of the local market. Techni-
cal content information is coordi-
nated between the United States
and France for release throughout
the world.
In countries where we have a
distributor but no subsidiary, the
distributor’s developer program
uses content generated by ACI.
However, the distributor may add
its own content to the program if
our agreement allows this.
The Challenges
As I said earlier, the rewards from
offering these programs are big,
but running a developer program
isn’t without its share of chal-
lenges. Here are some things to
seriously consider as you begin to
put together a developer contact
program of your own.
• The program requires an
up-front investment, and results
may be difficult to quantify.   The
money you put into your program
may very well exceed the result-
ing revenue, and you may have
difficulty quantifying the
monetary benefits. Sometimes
you’ll be able to show a direct
return on your investment; for

Reading notes: Headline not clearly identified; primary heading absent from supplied copy Reading order across column breaks may be non-sequential

Printed product names: 4D · ACI

Printed prices: $895

Printed dates: 1987

Languages: English

[Original PDF page 22](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=22)

### PDF page 23

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-3fd5b9e9bf4f4c3c7882ccf065ada82aa9716a86ef25fdd931f6506239334e9b)

The Anatomy of a Developer Support Program

Transcribed text:

Business & Marketing   23
M   A   Y   1   9   9   4
Apple Directions
example, the money we receive
from VAR sales is easily tracked.
But what is difficult, if not
impossible, to measure are the
many intangible returns from our
developer program investment,
such as those I mentioned earlier
(increased company credibility,
word-of-mouth, and so forth). It’s
hard to measure the effect of
these benefits on our overall
sales, both short-term and long-
term.
Finding ways to quantify and
justify your investment is no
simple task. While you know in
your gut that your program is
generating sales and multiplying
your influence, attaching a num-
ber to it is difficult. Based on our
experience, the best advice I can
offer is to put processes in place
to monitor your progress and
ensure that you stay the course
and that you’re not spending
money against some part of a
program that isn’t meeting your
goals. Which brings me to the
next challenge. . . .
• Squeaky wheels can con-
sume your resources and steer
you off course.   As you well
know, your developer group, like
every customer constituency, will
have more than its share of
squeaky wheels. Be careful not to
expend a disproportionate
amount of your resources cater-
ing to them; there’s a silent
majority whose needs and issues
can be very different from those
of the more vocal crowd, and
you need to be able to meet their
needs, as well.
It’s also very easy to fall into
the trap of creating a strategy or
changing your direction based on
what you hear from the more
vocal group. In fact, before you
know it you could change your
entire company strategy based
mostly on input from squeaky
wheels—a move that can prove
highly damaging.
To stay on course, try not to let
yourself become overwhelmed by
this kind of input. Make the effort
to reach out to the less vocal
members of your developer
group and learn what their needs
and issues are.
Our “outreach” program
includes a variety of activities. We
invite developers to informal
forums or meetings around the
country. We also try to call all of
our developers at least once a
quarter. Because we have so many
of them, this job is shared
between our developer services
team and the sales reps.
I also suggest that when a
problem is brought up by a
more vocal group, verify it with
other contingents of your devel-
oper group before you respond
to it.
The bottom line here is to
manage your time and resources
carefully, so that you can serve
your overall group’s needs and
While ACI offers two different programs tailored to
the needs of its developers, the programs share some
common elements:
•
Telephone technical support. In the United
States, for example, we previously had a single tech-
nical support phone number for customers and devel-
opers alike. Once developers identified themselves as
being participants in our program, their calls were
routed into a priority queue.
However, starting in May 1994 there will be a new
toll-free support line dedicated exclusively to two
groups: developers and users who purchase blocks of
support time. Members of ACI’s developer program
will continue to receive free, unlimited telephone
support and priority routing. (Users who don’t pur-
chase blocks of support time will have several other
technical support options to choose from.)
A key consideration in structuring our phone
support effort is making sure that the tech support
operators who take developer calls are senior people
who can answer the very technical and often compli-
cated kinds of questions that developers ask.
• Monthly mailings. Each month, developers
receive a package of information from ACI that helps
keep them up-to-date about ACI and its developer
community. The mailings’ content varies each month,
but generally it contains such items as technical
notes, software updates, discount offers for ACI and
its developers’ products, product information about
other developers’ 4D products, and special offers
from various hardware vendors.
• Training programs. Whenever possible, we
conduct training classes prior to a new release to help
developers prepare for when the product hits the
market. While this training helps developers, it also
gives us the bonus of getting final feedback from
knowledgeable users, which we can use to fine-tune
the product and class when needed.
Typically, these programs consist of a day or two
of classroom instruction that includes hands-on
experience with our software. Classes are held in
Silicon Valley, in our New York offices, and also in
rotating locations across the country on an ongoing
basis. While all ACI classes are open to everyone,
developers in our program get a first shot at “first-
run” classes about new versions or products. They
also pay a lower price for these classes.
• An annual developers’ conference. At first this
was a one-day conference, but over the years we’ve
gradually expanded it in response to what developers
say they need to accomplish. This year, for the first
time the conference will span three days.
The main goal is to communicate to developers
what ACI is doing at a strategic, corporate level:
During the first day of the conference, we present our
goals and plans for the next year and beyond. In
addition, we conduct demonstrations of new versions
and products that are under development. This pre-
pares developers for what to expect from ACI and
thereby helps them make better decisions for their
own businesses.
Another important conference goal is to give atten-
dees near-term information and guidance through
seminars and workshops on a number of tracks. For
example, we’ve conducted sessions on how to opti-
mize database performance, design user interfaces,
fully utilize add-on products such as 4D Write, and
connect to SQL-based systems running on other
platforms.
Non-members can attend our annual conference,
but they pay more than program members do.
• Support on electronic bulletin boards. We
maintain a forum on CompuServe and a bulletin
board on the AppleLink network. The CompuServe
forum contains a locked folder to which only our
developers have access. It provides a place for
developers to “chat” among themselves, exchange
ideas, discuss problems, and the like. This forum
has provided us with extremely valuable informa-
tion. We also post utilities, tools, updates, and other
software there for developers to download. In a
similar way, the AppleLink bulletin board has also
been helpful in supplementing our developer sup-
port efforts.
The Anatomy of a Developer
Support Program

Reading notes: Running headers and page numbers appear mid-text; reading order across two columns may be uncertain.

Printed product names: 4D Write · 4D · SQL

Printed dates: May 1994

Languages: English

[Original PDF page 23](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=23)

### PDF page 24

[Cite this scan](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/2#scan-151d60839e1076cac615e2b2bc69df22876f1b34f4d8c5136cf4542cdb5a9f65)

Transcribed text:

24   Business & Marketing
M   A   Y   1   9   9   4
Apple Directions
APDA Ordering Information
To place an APDA order from within the United States, contact APDA at 800-282-2732; in Canada, call 800-637-0029. For those who need to call the
United States APDA office from abroad, the number is 716-871-6555. You can also reach us by AppleLink; the address is APDA. If you’re outside the
United States, you may prefer to work with your local APDA contact. For a list of non-U.S. APDA contacts, see the “International APDA Programs” page
in the
APDA Tools Catalog.
meet your program goals.
• Accounting can be tricky.
Allocating expenses to and profits
from a developer program can
also be difficult. It’s important to
decide, at the beginning, where
the money for the program will
come from and where in your
company the profits (or losses)
will be posted. Getting agreement
at the start from all affected par-
ties or departments in your com-
pany is crucial to working peace-
fully with them when the
program’s bills start rolling in.
It all boils down to what your
financial goals are for your pro-
gram. Will you shoot for breaking
even, or will you try to make
money to invest back into the
program? Will you view the pro-
gram as a marketing expense, an
engineering one, or a shared
one? A cost center? A profit cen-
ter? You should clearly answer
these questions before launching
your program.
At ACI, we’ve chosen to view
our program as a marketing
expense. Also, our revenues from
VAR sales aren’t counted as profits
to the developer program but to
the product lines themselves. It’s
easy to get buried in the account-
ing, and our marketing depart-
ment spends a lot of time with
the finance department to plan,
budget, and track developer
program expenses.
In the long run, our goal is for
the program to pay for itself, and
if we make a little bit of money,
as sometimes we do, all the bet-
ter: We then have additional
dollars to invest into expanding
the program.
• Your mistakes can be ampli-
fied.   If you create this kind of
developer community, when you
make a mistake with a product
you’ll feel the backlash harder and
faster. Our mistakes make an
impact on developers’ businesses,
and such mistakes can potentially
imperil our developers’ liveli-
hoods. But the fact of life is that
with a complex product like 4D,
mistakes are inevitable. We’ve
done what almost all companies
do at one time or another: failed
to ship on a promised date,
missed a bug—we’re all familiar
with the list of things that can go
wrong.
However, the mistakes them-
selves aren’t so bad; it’s how you
handle them and how you
respond to developers that can
make the difference. Knowing
when and how to respond (or
sometimes how not to respond)
takes experience and insight. It
can be a difficult call; often, the
natural inclination is to pull back
and lock the door. Try to suppress
that impulse, even when the
going gets tough. Avoid creating
the “us versus them” mentality.
Remember that the success or
failure of these developers
reflects directly back on you.
So try to keep the communica-
tion lines open; let your develop-
ers know that you understand the
problem and the position it puts
them in, and that together you’ll
find a solution. Tell them early
and often, and repeat it until you
resolve the problem.
At this point the squeaky-
wheel dilemma really kicks in.
You must quickly investigate each
problem to determine the extent
of its influence: Is it something
that cuts broadly across your
developer base, or is it only a
problem that applies to the
developers who brought it to
your attention? Based on what
you learn, act accordingly. For
example, a broad-based problem
may result in our distributing an
update of our software. On the
other hand, we may provide a
“workaround” solution if the
problem is limited to very few
developers, and correct it in our
next product release.
• Enforcing quality control is
difficult.   Because our reputation
is closely tied to products our
developers produce with 4D, it’s
important to closely watch the
quality of those products. At first
we created a Certified Developers
Program, in which we reviewed
developers’ products. After a
short while, however, we stopped
doing that; it consumed a lot of
time and resources because we
found ourselves struggling to set
up and enforce a body of subjec-
tive criteria. And in some cases,
we found we had less expertise in
a specific application area than
the developer did. In the end we
didn’t net much from the effort.
We began to feel that customer
satisfaction was a better indicator
of how developers are doing. In
most cases, if a developer’s prod-
uct isn’t up to par, we’ll hear
about it from unhappy customers.
So we’ve shifted our focus
away from setting up “certifica-
tion hurdles” to constantly moni-
toring customer problems. When
the occasional problem does crop
up, we work with the developer
to improve that product, through
training, more technical support,
or whatever else might be need-
ed. Also, now that our company
has a sizable sales force, we can be
in direct contact with developers
more frequently, and we can even
visit user groups to get a better
feeling about what’s happening
with customers.
How to Begin Your
Approach
There’s no real cookbook
approach to starting a developer
program. It’s more like the menu
in a Chinese restaurant—you
know, the “family dinner” option
that gives you choices depending
on the tastes of those at the din-
ner table: pick one from column
A, two from column B, and so
forth.
The best advice I can give you
is to size up your developers and
their needs and determine what
your own goals are. Then, take a
good look at your pocketbook
and choose from the many
options at your disposal. If you
find that you must experiment a
little, as we have, don’t cringe. A
developer program is a living,
breathing entity that changes as
your company changes. Even for
us, who have been doing these
programs for a while, the picture
is constantly changing. For exam-
ple, as ACI moves its products
onto several new platforms, we’ll
have to find ways to support new
developers with different needs.
Remember, this is a not a desti-
nation, but a journey . . . so enjoy
the trip!   ¨
Mark Vernon is vice president of
sales and marketing for ACI, an
international company that
develops multiplatform database
products and whose U.S. head-
quarters are located in Cuperti-
no, California.

Reading notes: Page header date is spaced out as 'M A Y 1 9 9 4' and the year-only entry 1994 is inferred from that header rather than printed as a standalone date. Reading order around the column break 'The best advice' and the sidebar placement of the 'Mark Vernon' byline may be non-sequential.

Printed product names: APDA Tools Catalog · 4D

Printed dates: M A Y 1 9 9 4

Languages: English

[Original PDF page 24](https://www.vintageapple.net/files/6a317ff704b34d40d99c71ee440d12a9b91b6107876700e1f6a4244179691c61/directions-1994-05-6a317ff704b34d40.pdf#page=24)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/apple-software-source-e6d7f1bfac348adc/1.md)
