[comp.sys.mac.programmer] SFPutFile and the "Ok to replace?" dialog

boeheim@lindy.Stanford.EDU (Chuck Boeheim) (12/07/89)

Inside Macintosh volume I says that the SFPutFile procedure
should only present the "X already exists, OK to replace?" 
message if the file name that you type in already exists AND
it doesn't match the name you passed in the origName parameter.
In my experience, if you set a filename in origName and the file
exists, even if you don't change the filename at all before hitting
the SAVE button, you still get the "Ok to replace?" dialog if
the file exists.  Can anyone tell me if I'm doing something wrong
or if the documentation is incorrect?  How would one bypass the
dialog?  I suppose I could erase the file in the dlgHook function,
but that doesn't seem like the right way to go about it.

-Chuck Boeheim
 Stanford Linear Accelerator Center