home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18685 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.0 KB  |  49 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!apple!mumbo.apple.com!gallant.apple.com!seuss.apple.com!user
  3. From: absurd@apple.apple.com (Tim Dierks, software saboteur)
  4. Subject: Re: Remembering file locations
  5. Sender: news@gallant.apple.com
  6. Message-ID: <absurd-191192164937@seuss.apple.com>
  7. Date: Fri, 20 Nov 1992 00:53:30 GMT
  8. References: <1278@scvme3.UUCP>
  9. Organization: MacDTS Marauders
  10. Followup-To: comp.sys.mac.programmer
  11. Lines: 36
  12.  
  13. In article <1278@scvme3.UUCP>, kevinc@scvme3.UUCP (Kevin Cutts) wrote:
  14. > even after the program has been quit and restarted. I've used the 
  15. > System 7 Alias manager with great success. Now I have a user using 
  16. > sys6 who wants the same sort of capability...without the upgrade. 
  17. > What are the techniques used to handle this task. I don't want to 
  18. > reprogram the alias manager but would like to offer a very small
  19. > subset of its capabilities. Currently my program can locate a file 
  20. > on the same volume as my application but has trouble locating the 
  21. > file across volumes. Inside Mac expounds on all the methods that 
  22. > don't work but none that do!!!
  23. > tanx in advance,
  24. > kevinc
  25.  
  26. Remember:
  27.  
  28.   1) The file's name
  29.   2) The directory ID of the file's parent directory
  30.   3) The name of the volume the file is on
  31.  
  32. This is the simplest stable reference.  It can be expanded for more
  33. flexibility or stability, which is really what the alias manager
  34. does.  Useful things to add might be:
  35.  
  36.   4) The file's full path name, in case the directory ID changes
  37.       (this should only happen if the directory is deleted and
  38.       recreated, as might happen if the volume is resotred from
  39.       backup)
  40.   5) The volume's creation date, to distinguish multiple volumes with
  41.       the same names or in case the volume's name changes
  42.   6) More information about the file to make identifying it easier,
  43.       should its name or location change.
  44.  
  45. Tim Dierks
  46. MacDTS, but I speak for myself
  47.