home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / oop / macapp3 / 586 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.7 KB

  1. Path: sparky!uunet!pipex!warwick!uknet!network-analysis-ltd.co.uk!sw
  2. From: sw@network-analysis-ltd.co.uk (Sak Wathanasin)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Re: MacApp makefiles and OtherRsrcFiles
  5. Message-ID: <D2150050.odjhpu@nan.network-analysis-ltd.co.uk>
  6. Date: 23 Jan 93 10:28:09 GMT
  7. Reply-To: sw@network-analysis-ltd.co.uk
  8. Organization: Network Analysis Ltd
  9. Lines: 29
  10. X-Mailer: uAccess - Macintosh Release: 1.6v1
  11.  
  12.  
  13. In article <marshall-200193124922@hpsdr160.sdd.hp.com> (comp.sys.mac.oop.macapp3), marshall@sdd.hp.com (Marshall Clow) writes:
  14.  
  15. > I also had this problem, and this is my "solution". I was building an
  16. > app called "XXY", and my resource file was named "XXY.rsrc". Every time
  17. > I did a complete build (from scratch) as well as every now and then
  18. > (i.e, no apparent pattern), my XXY.rsrc file became 0 bytes long. I changed
  19. > it's name to "XXY Views.rsrc", changed the makefile, and I have had no
  20. > further problems (so far).
  21. > What I suspect is that somewhere, MABuild is making a temp file named
  22. > "{AppName}.rsrc".
  23.  
  24. MABuild has a default rule that "knows" how to create an .rsrc file from
  25. a .r file. It has another built in rule that automatically includes
  26. a "{AppName}.r" in a build. Unfortunately, most people have an {AppName}.r
  27. file, and when it gets Rez'ed, it creates an "{AppName}.rsrc" unless you've
  28. overridden the default rule in your Makefile.
  29.  
  30. Renaming either the .r or .rsrc file so that they have different roots should
  31. do the trick; I'd imagine the latter is more convenient for most.
  32.  
  33.  
  34. Sak Wathanasin
  35. Network Analysis Limited
  36. 178 Wainbody Ave South, Coventry CV3 6BX, UK
  37.  
  38. uucp:      ...!uknet!nan!sw  Phone: (+44) 203 419996
  39. AppleLink: NAN.LTD           Internet: sw@network-analysis-ltd.co.uk
  40.