home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14188 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.3 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!mlanett
  2. From: mlanett@Apple.COM (Mark Lanett)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: SFPPutFile question
  5. Message-ID: <71362@apple.Apple.COM>
  6. Date: 19 Aug 92 02:29:19 GMT
  7. References: <1992Aug18.225650.15434@asuvax.eas.asu.edu>
  8. Organization: Apple Computer Inc., Cupertino, CA
  9. Lines: 18
  10.  
  11. system@asuvax.eas.asu.edu (Marc Lesure) writes:
  12.  
  13. >I have a problem using the SFPPutFile routine.  I want to give the user the
  14. >option of appending to an existing file so I've added an 'append'
  15. >button in addition to the 'save' and 'cancel'.  The problem I have is 
  16. >what my dlgHook routine should return as its status value.  If it 
  17. >returns the 'putSave' status, then SFPPutFile put up the 'Already exists'
  18. >dialog and if it returns 'putCancel', then the SFReply vRefNum field is not
  19. >filled in correctly.  Is there a way to disable the 'Already exists' dialog or a
  20. >better return value?
  21.  
  22. I think for append you really want SFGetFile (or StandardGetFile or...). It
  23. means having similar code to deal w/ two dialog boxes, and two menu commands
  24. or whatever to get there, but is certainly the least likely to break in the
  25. future.
  26. -- 
  27. Have a bajillion brilliant Jobsian lithium licks.
  28. Mark Lanett, NOT speaking for anyone. Personal opinion only.
  29.