home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!munnari.oz.au!uniwa!cujo!peter
- From: peter@cujo.curtin.edu.au (Peter N Lewis)
- Subject: Re: SFGetFile's directory after an Open Event
- Message-ID: <1993Jan5.135459.8834@cujo.curtin.edu.au>
- Organization: Curtin University of Technology
- References: <1993Jan4.190815.5881@ccu1.aukuni.ac.nz> <1993Jan4.205533.25405@kth.se> <76105@apple.apple.COM>
- Date: Tue, 5 Jan 1993 13:54:59 GMT
- Lines: 38
-
- grobbins@Apple.COM (Grobbins) writes:
-
- >In article <1993Jan4.205533.25405@kth.se> d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
- >>In <1993Jan4.190815.5881@ccu1.aukuni.ac.nz> russells@ccu1.aukuni.ac.nz (Russell Street) writes:
- >>>After an application receives an 'odoc' Apple Event to open a document
- >>>should it arrange it so the next Standard File [Open] Dialog that is
- >>>brought up by the user is the same directory that the 'odoc' document
- >>>came from?
-
- Well, it seems to me that an odoc event should have nothing to do with
- the StandarFile location.
-
- >But what about when the user makes a change to the open document
- >and then chooses Save As...? Standard File continues to point to
- >somewhere irrelevant (for most Apple event-aware apps, anyway.)
-
- IMHO, Save As should ALWAYS set the StandardFile
- location to the folder that the file previously existed in (assuming
- it had a name/folder location beforehand of course). That is, for a
- file with a preexisting location on the disk, Save As, OK, Replace
- should always replace the preexisting file.
-
- >Except for those people who absolutely must control every aspect of
- >their users' environment, my current recommendation is to leave
- >Standard File alone. At least this way, when the system software
- >folks get around to making Standard File point somewhere meaningful,
- >your code won't be interfering.
-
- Seems to me the case of Save As where you already know the location
- of the file is pretty clear cut.
-
- Well, thats what I recon anyway :-) If anyone finds that any of the
- above made any gramatical sense whatsoever, please let me know and I'll
- try to be more obscure next time :-)
- Peter.
- --
- _______________________________________________________________________
- Peter N Lewis <peter@ncrpda.curtin.edu.au> Ph: +61 9 368 2055
-