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

  1. Path: sparky!uunet!psinntp!notable!oberon!daven
  2. From: daven@notable.com (Dave Newman)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Storing a reference to a file ..
  5. Date: Mon, 17 Aug 92 18:06:05 PST
  6. Organization: Notable Technologies, Inc.
  7. Message-ID: <01058004.bb6oca@oberon.notable.com>
  8. Reply-To: daven@notable.com
  9. X-Mailer: uAccess LITE - Macintosh Release: 1.5v4
  10. Lines: 29
  11.  
  12.  
  13. In article <5222@krafla.rhi.hi.is> (comp.sys.mac.programmer), rson@rhi.hi.is (Reynir Hugason) writes:
  14. | Ok here is the scenario: I have a project file. I want to store from within
  15. | the project file, which files are included in the project and some info
  16. | about each file. Presently I simply take the FSSpec and save it; however,
  17. | this is not suffiecent. What happens is that my program cant find files
  18. | if I start up from another disk. The only solution I can imagine is to
  19. | store the volume name and perhaps creation date of the volume as well ANDOR
  20. | use these file id things.
  21. | How would you do it?
  22.  
  23. As someone else noted, you can save aliases to the files. That doesn't work
  24. so well if you're going to sell into the population of Macs that don't run
  25. System 7. In that case, your suggest should work fairly well (FSSpec, vol
  26. name and vol creation date&time)
  27.  
  28. BTW - System 6 and older doesn't have FSSpecs, but it's not hard to gather
  29. up all the info that goes into an FSSpec using the older file system calls.
  30.  
  31. --Dave
  32.  
  33. -----------------------------------------------------------
  34. Dave Newman                 |  AOL:      AFC Tinman
  35. Artillery Spotter           |  ALink:    TINMAN
  36. Notable Technologies, Inc.  |  CIS:      70743,3323
  37. Voice:    510.208.4449      |  internet: daven@notable.com
  38. FAX:      510.444.4493      |  
  39. -----------------------------------------------------------
  40.