home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13984 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!mips!darwin.sura.net!jvnc.net!yale.edu!think.com!cayman!colin
  2. From: colin@Cayman.COM (Colin "Atilla" Steele)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: HELP, PLZ:  MPW tool bums out when loading HUGE resource map
  5. Message-ID: <COLIN.92Aug14091537@wrangel.Cayman.COM>
  6. Date: 14 Aug 92 13:15:37 GMT
  7. Sender: news@cayman.COM
  8. Distribution: comp
  9. Organization: Cayman Systems Inc., Cambridge, MA
  10. Lines: 37
  11. Nntp-Posting-Host: wrangel
  12.  
  13.  
  14. Greetings, gentle netters.
  15.  
  16. Yes, here I am, once again groveling at the feet of the collective
  17. net.godheads, with a prickly problem.
  18.  
  19. Some of you may remember my posts over the last week or two about
  20. source code control.  Projector is looking like it may be the de facto
  21. solution.  So, I'm trying to compensate for a couple of its
  22. deficiencies.
  23.  
  24. To that end, I've written an MPW tool called revinfo, that takes a
  25. file as an arg, opens the res fork of the file, and looks for a 'ckid'
  26. resource in that file.  If it finds one, it parses the 'ckid' out, and
  27. prints it in a cute, parsable format.
  28.  
  29. It works fine, with one small problem.  It pukes on my ".proj" file.
  30. After some investigation, it looks like the problem is that the
  31. resource map is too big - the file (map) is 2.5 Mb.  Since MPW tools
  32. run in a conjured-up C run-time environment, inside MPW, when the tool
  33. loads the 2.5 Mb resource map, all hell breaks loose.
  34.  
  35. So, my question is: "How do I make this work?"  My first inclination
  36. is to find some way of getting a handle to 'ckid' # 128 without
  37. loading the whole resource map.  Is this possible?  Using
  38. SetResLoad(FALSE) will just cause GetResource() to return NIL, right?
  39.  
  40. That's the only solution my poor brain can come up with, right now.
  41. Are there other ideas on how to work around this small problem??
  42.  
  43. If it would help, I'll post the code...
  44. --
  45.  
  46.  
  47. ------------------------------------------------------------------------------
  48.  Colin Steele     | Cayman Systems, 26 Landsdowne St., Cambridge, MA 02139
  49.  colin@cayman.com | (617) 494-1916 x209 | applelink D0523 | Fax (617) 494-9270
  50.