info-mac@uw-beaver (02/10/85)
From: roy@nlm-vax (Roy Standing) I just had the following rather interesting experience using the Apple Resource Editor. the Desk Accessory Mover V1.4, and the pre-release VideoWorks V0.15: a) I booted with the VideoWorks disk. I noticed that there were four desk accessories (DAs) that I had not seen before: 1. ArtGrabber 2. Heap Doctor 3. MemWindow 4. Traplist b) I put a copy of DAM V1.4 on the Videoworks disk and invoked it. To my great surprise only ArtGrabber was on DAM's list. c) I brought up Resoucre Editor and opened the system file of the VideoWorks disk. I found the DRVR entry and opened that, giving me the following list: DRVR ".Print" ID = 2 DRVR "Heap Doctor" ID = 8 DRVR "MemWindow" ID = 7 DRVR "TrapList" ID = 5 DRVR "Uriah" ID = 12 DRVR "ArtGrabber" ID = 29 The above list omits the standard entries. Skipping the things that didn't work... I selected Traplist then used the EDIT menu bar entry to GET INFO. This gave me a window which displayed the ID number and allowed me to change it. (Caution: to change the ID and have it remain the entry you type DO NOT terminate with a carriage return, simply enter the new ID number and click the window close box in the title bar.) I exchanged ID numbers with three of the standard accessories so the three I wanted had ID values above 10 (my guess as to why DAM V1.4 couldn't find them) and closed the system file. A dialog box asked me if I wanted the changes written out to the system file and I responded yes. d) I brought up DAM V1.4 and it could now find the three new DAs but not the standard ones whose ID numbers were now 5,7,8. I copied the DAs to the holding area and saved them. To be sure everything worked I then loaded them on another disk successfully. I have not tried to load them on a disk with the standard DAs whose ID numbers I gave them so I don't know if that might cause a conflict. All in all, I was quite happy that I was successful, and without resorting to reading Inside Mac or any other documentation. I am not sure what all of the DAs do but it seems clear that I don't have the right to distribute them. Heap Doctor and MemWindow seem to give heap status and allow you to see whats in memory (anywhere). I'm unsure what kinds of traps TrapList lists (toolbox entry points?) but it lists a series of addresses like: Trap 00D0 is at address 401262. Trap 00D1 is at address 40138A. ... Trap 02D6 is at address 401468. ArtGrabber puts up a blank window, I'll have to figure it out later. ----- Hope this is useful to someone. These comments are my own, I know no one else who would claim them.