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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!usc!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!kip-16.taligent.com!user
  3. From: keith@taligent.com (Keith Rollin)
  4. Subject: Re: How to store file references/names ?
  5. Message-ID: <keith-171192140554@kip-16.taligent.com>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: usenet@taligent.com (More Bytes Than You Can Read)
  8. Organization: Taligent
  9. References: <1e5fvgINN835@uni-paderborn.de> <1992Nov15.172919.10970@netcom.com> <40561@unix.SRI.COM>
  10. Date: Tue, 17 Nov 1992 22:13:06 GMT
  11. Lines: 23
  12.  
  13. In article <40561@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) wrote:
  14. > And anyone that looked into a alias can tell you that it does contain
  15. > the full path name. Damn you Apple! :-) (Do what I say not as I do. For years 
  16. > Apple has been bellowing: "don't use full pathnames" What did they end up 
  17. > using for aliases?)
  18.  
  19. Well, there's a smiley in there, so I guess I don't really need to point
  20. out that Apple also writes directly to the screen, reads and sets hardware
  21. registers, examines and changes private fields of data structures, calls
  22. undocumented traps, parses up the region structure, etc...
  23.  
  24. Actually, the full pathname in the alias structure is only used as a backup
  25. in case the dirID fails. Using both a path of dirIDs and names is a very
  26. powerful technique, and I'm sure Apple wouldn't mind if you decided to
  27. implement one for your application. However, that's a lot of work, and
  28. using a dirID is very simple and works 99.9+% of the time (how often do you
  29. restore a hard disk from tape?)
  30.  
  31. -----
  32. Keith Rollin
  33. Phantom Programmer
  34. Taligent, Inc.
  35.