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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!ivanski
  3. From: ivanski@world.std.com (Ivan M CaveroBelaunde)
  4. Subject: Re: Remembering file locations
  5. Message-ID: <By042F.5z0@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. References: <1278@scvme3.UUCP> <absurd-191192164937@seuss.apple.com>
  8. Date: Fri, 20 Nov 1992 06:15:50 GMT
  9. Lines: 47
  10.  
  11. absurd@apple.apple.com (Tim Dierks, software saboteur) writes:
  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.  
  24. >Remember:
  25. >  1) The file's name
  26. >  2) The directory ID of the file's parent directory
  27. >  3) The name of the volume the file is on
  28.  
  29. This will work. Alternately, you *can* have the Alias Manager (albeit a
  30. somewhat crippled version of it, because of lack of file IDs) under System 6.
  31. It's hidden in the QuickTime INIT.
  32.  
  33. The nice thing about it is that it keeps your code all the same (no special
  34. casing). It might even set the corresponding Gestalt stuff (although I'm
  35. not positive about this).
  36.  
  37. The drawback is, of course, that QT only runs on 020+ Macs, and that it's
  38. a little overkill to install QT just to get the Alias Manager. But that's
  39. a decision you need to make yourself as a system designer. The Sys 6 Alias
  40. Manager is basically what Tim described above + an interface to allow
  41. the user to refind the files, but that's about it.  Then again, that's code
  42. that you don't have to write yourself...
  43.  
  44. It might even be possible for brave souls out there to rip out the
  45. appropriate resources from the QuickTime INIT and make them into a smaller
  46. INIT that would even work on 020 machines. It's probably not
  47. distributable, but this sounded like an in-house app, so it probably
  48. is legal. You probably need to dig in a QT build with named resources (I
  49. think the one in the 1.0 alpha CD and/or beta CD have them) in order to
  50. figure out which code resource does what...
  51.  
  52. Or you could just use filespecs + a volume name like Tim said.
  53.  
  54. -Ivan
  55. -----
  56. Ivan Cavero Belaunde
  57. DiVA Corporation
  58.