[comp.sys.mac.programmer] DeRez question

DFJOHN01@ULKYVX.BITNET (GMAIL_FLAG_PERSONAL_NAME) (05/22/89)

I am trying to use DeRez to decompile some resources, but keep getting a
generic "data..." format. I would like the same format as in the Types.r
located in the RIncludes folder but can't seem to get it to work.

Any help would be greatly appreciated.

David F. Johnson
dfjohn01@ulkyvx

levin@bbn.com (Joel B Levin) (05/22/89)

In article <8905211950.AA01804@jade.berkeley.edu> DFJOHN01@ULKYVX.BITNET (GMAIL_FLAG_PERSONAL_NAME) writes:
|I am trying to use DeRez to decompile some resources, but keep getting a
|generic "data..." format. I would like the same format as in the Types.r
|located in the RIncludes folder but can't seem to get it to work.

Try this:

  derez foo.rsrc Types.r > foo.r	# where foo.rsrc has the resources
					# you are "derez-ing"

The second through last input file names are taken for definition files.

This requires the exported variable {RIncludes} (should be set up by
your Startup or UserStartup.  If it isn't right, give the entire
pathname of Types.r

Caveat / non-feature (I won't say bug):

  Before you run rez on the output file generated above, you must edit
  in the corresponding #include "Types.r" at the top of it.

	/JBL
UUCP:     {backbone}!bbn!levin		POTS: (617) 873-3463
INTERNET: levin@bbn.com

lsr@Apple.COM (Larry Rosenstein) (05/23/89)

In article <40271@bbn.COM> levin@bbn.com (Joel B Levin) writes:
> Caveat / non-feature (I won't say bug):
> 
>   Before you run rez on the output file generated above, you must edit
>   in the corresponding #include "Types.r" at the top of it.

Or you have to specify the description files on the Rez command line, in 
much the same way that you do on the DeRez command line.

Larry Rosenstein, Apple Computer, Inc.
Object Specialist

Internet: lsr@Apple.com   UUCP: {nsc, sun}!apple!lsr
AppleLink: Rosenstein1

han@Apple.COM (Byron Han, wyl E. coyote ) (05/23/89)

Just as a general tip, if you have questions about MPW commands/tools,
try the commando interface (command-enter on the line with the command)
or even help!

You'd be surprised at the amount if "help" provided via commando.

+-----------------------------------------------------------------------------+
| Disclaimer: Apple has no connection with my postings.                       |
+-----------------------------------------------------------------------------+ 
Byron Han, Communications Architect   At Apple, we change the world everyday.
Apple Computer, Inc.                  -----------------------------------------
20525 Mariani Ave, MS27Y              Internet: han@apple.COM
Cupertino, CA 95014                   UUCP:{sun,voder,nsc,decwrl}!apple!han
------------------------------------  GENIE:BYRONHAN   CompuServe:72167,1664
ATTnet: 408-974-6450                  Applelink:HAN1   HAN1@applelink.apple.COM
-------------------------------------------------------------------------------

thecloud@dhw68k.cts.com (Ken McLeod) (05/23/89)

In article <8905211950.AA01804@jade.berkeley.edu> DFJOHN01@ULKYVX.BITNET (GMAIL_FLAG_PERSONAL_NAME) writes:
>I am trying to use DeRez to decompile some resources, but keep getting a
>generic "data..." format. I would like the same format as in the Types.r
>located in the RIncludes folder but can't seem to get it to work.

  Whenever things 'don't seem to work', try using the Commando interface,
which will build the correct syntax for you.

  In this instance, it sounds like you are leaving "Types.r" out of the
command line. A typical DeRez command would look like this:

DeRez foo.rsrc Types.r > output.r

>David F. Johnson
>dfjohn01@ulkyvx

-ken
-- 
==========     .......     =============================================
Ken McLeod    :.     .:    UUCP: ...{spsd,zardoz,felix}!dhw68k!thecloud
==========   :::.. ..:::   INTERNET: thecloud@dhw68k.cts.com
                ////       =============================================