Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 UW 5/3/83; site uw-beaver
Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!houxm!houxz!vax135!cornell!uw-beaver!info-mac
From: info-mac@uw-beaver (info-mac)
Newsgroups: fa.info-mac
Subject: DESK ACCESSORIES (made simple?)
Message-ID: <1462@uw-beaver>
Date: Mon, 13-Aug-84 16:30:58 EDT
Article-I.D.: uw-beave.1462
Posted: Mon Aug 13 16:30:58 1984
Date-Received: Tue, 14-Aug-84 04:59:15 EDT
Sender: daemon@uw-beave
Organization: U of Washington Computer Science
Lines: 27

From: cohn%UCBONYX@Berkeley
	Has anybody successfully written a desk accessory?  I've thought
about a way to write the desk accessory using the Mac Assembler and then
just changing the type from CODE to DRVR.  Since the RESOURCE MOVER
doesn't let you change the type of a resource, I had to write a small
machine language program to copy the code from my application and write
it to another file with the DRVR type.  After creating the DRVR, I 
just used RESOURCE MOVER and transfered the DRVR to the system resource
file.  Of course, my desk accessory appeared in the apple menu, but
bombed (not of course).
	I modeled my first desk accessory after one I found called
"Uriah Heap" written by Coonen which displays the heap usage graphically
every 5 seconds.  It's Real Nice.  Still, mine doesn't work, yet it is so
simple.  Mine just opens a window and inverts the content region every
few ticks.  If you have any information at all concerning desk accessories, 
please write me.
	Desk accessories are defined in "Inside Macintosh" as being
mini-applications of sorts.  They can also operate while an application
is running, allowing for very simple multitasking capabilities like spooling
for instance.  Please, someone, write a spooler!

					Ted Cohn
					cohn@ucbonyx
					via ucbvax