Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!claris!apple!han From: han@Apple.COM (Byron Han, fire fighter) Newsgroups: comp.sys.mac.programmer Subject: Re: documenting resources Message-ID: <7852@apple.Apple.Com> Date: 6 Apr 88 20:17:27 GMT References: <534@wuphys.UUCP> Reply-To: han@apple.UUCP (Byron Han, fire fighter) Organization: Communication Tools Group - Apple Computer, Inc. Lines: 43 Keywords: how? In article <534@wuphys.UUCP> mrk@wuphys.UUCP (Mark R. Kaufmann) writes: > > >However, I have one concern: >how does one document the "code" that is "written" using ResEdit? >(I don't think I like the idea of writing code without being able to obtain >a useful hard copy of it.) > Try using DeRez from the Macintosh Programmers Workshop. You can dump resource files into formatted text files which can be edited and processed by Rez into a resource file again. You can create you own templates for the DeRez'ing so you can get something more intelligable than a straight hex dump. Example of formatted DeRez output: resource 'STR#' (-4001) { { "1.0D1", "Written by Byron Han.\0x0DCopyright 1988 - Apple Computer, Inc." } }; Example of unformatted Rez output: data 'STR#' (-4001) { $"0002 0531 2E30 4431 2543 6F70 7972 6967" /* ...1.0D1%Copyrig */ $"6874 20A9 2031 3938 3820 2D20 4279 726F" /* ht 1988 - Byro */ $"6E20 422E 2048 616E 2C20 6573 712E" /* n B. Han, esq. */ }; Both are accepted by Rez to create a resource file. The formatted version requires the templates which are included with MPW. The templates include most all resources (DITL, DLOG, STR , WIND, vers, SIZE, et cetera ad nauseum et rigor mortis...) MPW is available from APDA - 290 SW 43rd Street; Renton, WA 98055 This does not represent an official Apple statement of position. -- ------------------------ 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