home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!agate!stanford.edu!unix!mxmora
- From: mxmora@unix.SRI.COM (Matt Mora)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: How to store file references/names ?
- Message-ID: <40561@unix.SRI.COM>
- Date: 16 Nov 92 23:24:16 GMT
- References: <1e5fvgINN835@uni-paderborn.de> <1992Nov15.172919.10970@netcom.com>
- Organization: SRI International, Menlo Park, California
- Lines: 25
-
- In article <1992Nov15.172919.10970@netcom.com> leonardr@netcom.com (Leonard Rosenthol) writes:
-
- > If you are a System 7 only product, then the best way would be to
- >create an alias to the file (via NewAlias) and then store the aliasHandle
- >in your prefs file. If not, or if you will be working on both 6 & 7, then
- >you need to create a new data structure which will store a volume NAME (
- >volume reference numbers (vRefNums) are not valid across boots), a directory
- >ID (dirID) and a file name. With that information you can get back to those
- >files.
-
- DirID aren't that great either as I found out after I had to restore
- a disk from a backup. :-( The dirID's all changed of course. I guess you need
- a full pathname AND the volname,dirid,filname triplet to really be safe.
- And anyone that looked into a alias can tell you that it does contain
- the full path name. Damn you Apple! :-) (Do what I say not as I do. For years
- Apple has been bellowing: "don't use full pathnames" What did they end up
- using for aliases?)
-
-
- Matt
- --
- ___________________________________________________________
- Matthew Mora | my Mac Matt_Mora@sri.com
- SRI International | my unix mxmora@unix.sri.com
- ___________________________________________________________
-