Path: utzoo!attcan!uunet!zephyr.ens.tek.com!tektronix!sequent!mntgfx!tomc From: tomc@mentor.com (Tom Carstensen) Newsgroups: comp.sys.mac.programmer Subject: Re: System 7.0 & Aliases Message-ID: <1989Aug23.180141.16033@mentor.com> Date: 23 Aug 89 18:01:41 GMT Organization: engr Lines: 20 oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) writes: > Note, this means that your Save command had better write the data back > into the original file, and not into some newly created file that it will > rename if the write succeeds. (if it destroys the original in the course > of the save, it will disconect any aliases that file might have.) Whay about backup files. My application has an option to create .bak files whenever the user manually saves a file. The .bak is created by renaming the disk file foo to foo.bak, and then creating and writing out an up-to- date file does this mean the alias will point to the .bak file, and the new file will lose the alias. It seems that this implementation of aliases is far to error prone (why not stick to more conventional methods, like keeping the directory ID and filename or, if you like Unix, the path name). :-------------------------------------------------------------------------: : | GEnie: T.CARSTENSEN | tomc@pdx.MENTOR.COM : : Thomas | Delphi: CARSTENSEN | ...{sequent,tessi,attunix, : : Carstensen | CompuServe: 73627,2762 | apollo}!mntgfx!tomc : : | AppleLink: D3852 | : :-------------------------------------------------------------------------: