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