Not Recommended Documentclose button

Important: The information in this document is Not Recommended and should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-01-30

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“ROMResourceDump.zip”, 34.2K)
Download Sample (“ROMResourceDump.dmg”, 95.5K)



Description

This little utility copies all of the resources in the Macintosh's ROM into a file called "ROM Resource Dump File". This is useful for the insanely curious, those with a professional "need to know" (like DTS engineers), and as a trivial Resource Manager sample. Some notes: 1. When you run this program on some older machines it will create a resource file that ResEdit reports as corrupt. ResEdit is complaining because the file contains two resources with the same type and ID. The program does this because both resources exist in the ROM on that machine. 2. The program makes heavy use of Metrowerks Pascal's console and the ostrich error checking algorithm. 3. Efficiency was not the goal of this program. I call UpdateResFile religiously while creating the output file, which doesn't make it any faster.

Document Revision History

Date Notes
2003-01-30Illustrates how to copy all resources in the Macintosh's ROM into a file.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.