Path: utzoo!mnetor!uunet!husc6!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!ll-xn!ames!lll-lcc!pyramid!voder!apple!han From: han@Apple.COM (Byron Han, fire fighter) Newsgroups: comp.sys.mac Subject: Re: Resources, Resource Compilers, and Resource Editors Message-ID: <7607@apple.Apple.Com> Date: 9 Mar 88 07:14:33 GMT References: <328@ajpo.sei.cmu.edu> Reply-To: han@apple.UUCP (Byron Han, fire fighter) Organization: Communication Tools Group - Apple Computer, Inc. Lines: 55 Keywords: Resources > >Now, on to the question: My company inherited an old (1984-5) Mac >application. With the source code came old RMaker input files, which >included inputs for icons, windows, menues, etc. (The icons are in the >form of hexadecimal numbers.) After a good deal of work, one of my >fellow employees got the thing up and running under MPW 2.0. However, >he left with out doing anything with the original RMaker input file. > >We have begun to work on the Pascal source code, modifying it as >needed, and running the MPW build file (complete with a call to >RMaker) created by the dear departed. We now want to modify the icons >for the application and application documents. Our question is this: >Given an old RMaker (resource compiler) input file, what is the best >way to bring this system up to date? Specifically, we would like to >avoid using RMaker altogether, and place items such as icons in a >resource file which can be both edited and "linked" each time we >re-build the application. > > -- Ed Berard > (301) 695-6960 Use RMaker one last time to create the resources and place them in the target file. Retire RMaker (with honor guard). Now, use the MPW Tool DeRez to create a .r file which is in input format for Rez. Rez/Derez compile and decompile text files into resource files. NOTE that RMaker input syntax is NOT compatible with Rez input syntax. RMaker .r file --rez--> rsrc file --DeRez--> Rez .r file --rez--> rsrc file Documentation is in (chapter 8?) of the MPW Reference. To recompiler the text file: Rez types.r filename.r -o filename There are lots of things that can be done with Rez/DeRez. So you'll have to read the manual to get it all down. Note that you can also use ResEdit to edit resource files and then DeRez them into text format so that you can use Rez in the Build process. Hope I was not too longwinded. ------------------------ Byron Han, Communications Tool ---------------------- Apple Computer, Inc. 20525 Mariani Ave, MS 27Y Cupertino, CA 95014 ATTnet:408-973-6450 applelink:HAN1 domain:han@apple.COM MacNET:HAN GENIE:BYRONHAN COMPUSERVE:72167,1664 UUCP:{sun,voder,nsc,decwrl}!apple!han -- ------------------------ Byron Han, Communications Tool ---------------------- Apple Computer, Inc. 20525 Mariani Ave, MS 27Y Cupertino, CA 95014 ATTnet:408-973-6450 applelink:HAN1 domain:han@apple.COM MacNET:HAN GENIE:BYRONHAN COMPUSERVE:72167,1664 UUCP:{sun,voder,nsc,decwrl}!apple!han