home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20677 < prev    next >
Encoding:
Text File  |  1993-01-05  |  2.2 KB  |  49 lines

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