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

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!usc!wupost!waikato.ac.nz!ldo
  2. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Minimal aliases
  5. Message-ID: <1992Aug31.174347.10473@waikato.ac.nz>
  6. Date: 31 Aug 92 17:43:47 +1200
  7. Organization: University of Waikato, Hamilton, New Zealand
  8. Lines: 23
  9.  
  10. On page 27-19 of IM6 is the following interesting sentence:
  11.  
  12.     "GetAliasInfo cannot provide all kinds of information on a minimal alias."
  13.  
  14. In my experimentation with a set of Alias Manager externals I wrote for
  15. HyperCard, I found out what this meant: If you create an alias with
  16. NewAliasMinimal or NewAliasMinimalFromFullPath, then GetAliasInfo can
  17. only return the leaf name (asiAliasName) and volume name (asiVolumeName)
  18. (and it can probably return the zone name and server name as well, if
  19. appropriate--haven't checked, as I don't have a network at home). What it will
  20. *not* do is return any information for positive selector codes--asiParentName
  21. and above.
  22.  
  23. This strikes me as a little odd, as that information must be there, for an
  24. alias created with NewAliasMinimalFromFullPath, at least.
  25.  
  26. Also, it seems to me there is other information stored in the alias that cannot
  27. be returned via GetAliasInfo. For example, you can't tell if the object being
  28. aliased is supposed to be a file or a folder--not without actually resolving
  29. the alias.
  30.  
  31. Lawrence
  32. with an obsession about completeness.
  33.