home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / misc / 15617 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  2.6 KB

  1. Xref: sparky comp.sys.mac.misc:15617 comp.sys.mac.programmer:14675 comp.sys.mac.system:11374
  2. Newsgroups: comp.sys.mac.misc,comp.sys.mac.programmer,comp.sys.mac.system
  3. Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
  4. From: d88-jwa@dront.nada.kth.se (Jon W{tte)
  5. Subject: Re: Aliases (was Re: # of files)
  6. In-Reply-To: sdorner@qualcom.qualcomm.com's message of 28 Aug 92 13:19:41 GMT
  7. Message-ID: <D88-JWA.92Aug28193753@dront.nada.kth.se>
  8. Originator: d88-jwa@dront.nada.kth.se
  9. Sender: usenet@kth.se (Usenet)
  10. Nntp-Posting-Host: dront.nada.kth.se
  11. Organization: Royal Institute of Technology, Stockholm, Sweden
  12. References: <1992Aug27.143819.11599@sunfs3.Camex.COM>
  13.     <1992Aug27.220740.2524@qualcomm.com>
  14.     <1992Aug28.175934.10435@waikato.ac.nz>
  15.     <1992Aug28.131941.19238@qualcomm.com>
  16. Date: Fri, 28 Aug 1992 18:37:53 GMT
  17. Lines: 37
  18.  
  19. > sdorner@qualcom.qualcomm.com (Steve Dorner) writes:
  20.  
  21.    Other than that, I don't buy Apple's arguments about how wonderful
  22.    aliases are.  The choice, in particular, to prefer directory ids (something
  23.    the user can neither see nor control) to  pathnames (full or relative,
  24.    UNIX gives you your choice) strikes me as unfortunate.
  25.  
  26. Aliases have room for growth. I added a special feature that
  27. stores a relative path for items on the same volume as the
  28. "relative" alias pointer (which has never worked too well for
  29. me) and use wrapper functions to check for this, text-based,
  30. relative path first and fall through to the alias manager if
  31. it doesn't work.
  32.  
  33. Not too much code, and works nicely; mounts remote file servers
  34. when you want them too, and keeps "local" stuff reasonably simple
  35. to switch around.
  36.  
  37.    Anybody who has ever written a mac program that has to deal with files
  38.    except in a standard file context understands just how insane the Mac
  39.    filesystem is--Cub scouts everywhere should be glad that the filesystem
  40.    doesn't have a crawl space.  Aliases are allowing just a little of that
  41.    madness to show.
  42.  
  43. I don't think it's too hard; you must be doing something wrong.
  44. Write four wrappers for PBGetCatInfo, and use FSSpecs for storing
  45. info, and you'll be a happy camper (you can use the FSSpec structure
  46. under 6.0 as well, but not the calls...)
  47.  
  48.    UNIX symlinks with a mount capability would have been cleaner, IMHO.
  49.  
  50. Nope, I love to rename files and still have aliases point to them.
  51. -- 
  52. - I have decided that it is not boxes but my lack of skill that's the problem.
  53. - Traitor! This kind of attitude will get you nowhere around here. If you must
  54.   know, it's not your boxes that are the problem, it's your lack of a
  55.   sufficient number of boxes. Go out and buy something.
  56.