Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
ROMResourceDump
Last Revision: | Version 1.0, 2003-01-30 Illustrates how to copy all resources in the Macintosh's ROM into a file. |
Build Requirements: | |
Runtime Requirements: | Carbon |
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.
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-30