home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!ivanski
- From: ivanski@world.std.com (Ivan M CaveroBelaunde)
- Subject: Re: Remembering file locations
- Message-ID: <By042F.5z0@world.std.com>
- Organization: The World Public Access UNIX, Brookline, MA
- References: <1278@scvme3.UUCP> <absurd-191192164937@seuss.apple.com>
- Date: Fri, 20 Nov 1992 06:15:50 GMT
- Lines: 47
-
- absurd@apple.apple.com (Tim Dierks, software saboteur) writes:
-
- >In article <1278@scvme3.UUCP>, kevinc@scvme3.UUCP (Kevin Cutts) wrote:
- >> even after the program has been quit and restarted. I've used the
- >> System 7 Alias manager with great success. Now I have a user using
- >> sys6 who wants the same sort of capability...without the upgrade.
- >> What are the techniques used to handle this task. I don't want to
- >> reprogram the alias manager but would like to offer a very small
- >> subset of its capabilities. Currently my program can locate a file
- >> on the same volume as my application but has trouble locating the
- >> file across volumes. Inside Mac expounds on all the methods that
- >> don't work but none that do!!!
-
- >Remember:
- > 1) The file's name
- > 2) The directory ID of the file's parent directory
- > 3) The name of the volume the file is on
-
- This will work. Alternately, you *can* have the Alias Manager (albeit a
- somewhat crippled version of it, because of lack of file IDs) under System 6.
- It's hidden in the QuickTime INIT.
-
- The nice thing about it is that it keeps your code all the same (no special
- casing). It might even set the corresponding Gestalt stuff (although I'm
- not positive about this).
-
- The drawback is, of course, that QT only runs on 020+ Macs, and that it's
- a little overkill to install QT just to get the Alias Manager. But that's
- a decision you need to make yourself as a system designer. The Sys 6 Alias
- Manager is basically what Tim described above + an interface to allow
- the user to refind the files, but that's about it. Then again, that's code
- that you don't have to write yourself...
-
- It might even be possible for brave souls out there to rip out the
- appropriate resources from the QuickTime INIT and make them into a smaller
- INIT that would even work on 020 machines. It's probably not
- distributable, but this sounded like an in-house app, so it probably
- is legal. You probably need to dig in a QT build with named resources (I
- think the one in the 1.0 alpha CD and/or beta CD have them) in order to
- figure out which code resource does what...
-
- Or you could just use filespecs + a volume name like Tim said.
-
- -Ivan
- -----
- Ivan Cavero Belaunde
- DiVA Corporation
-