🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1860

SavePanel: is there a way to not ask about clobbering an existing file?

#1860
From: Mike Ferris
Date: Fri, 20 Nov 1992 22:33
24 lines
1384 bytes
Hi,

I have a question about SavePanel and/or OpenPanel.

I have an application where I need the user to supply the name of a log  
file.  If the user wants a new file, they should be able to type in a new  
name.  Later when the log is used, it will be created if needed.  If the  
user chooses an existing file, then the app will append to it when it  
needs to log something.

SavePanel allows me to do all I need, except for the annoying feature that  
it asks me whether I want to overwrite the existing file if I choose a  
file that already exists.  My app will NOT overwrite this file at the time  
the user has to press OK (or ever really).

Does anyone know a way to prevent that panel from showing up?

Thanks

____________________________________________________________
Mike Ferris                 Once in a while
mferris@trirex.com          You can get shown the light
Trirex Systems, Inc.        In the strangest of places
(212) 856-9000              If you look at it right.   -RH
Technical Details
Message-ID: <1992Nov20.223313.8542@Trirex.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!newshost!root

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!newshost!root
From: mferris@trirex.com (Mike Ferris)
Subject: SavePanel: is there a way to not ask about clobbering an existing file?
Message-ID: <1992Nov20.223313.8542@Trirex.COM>
Sender: root@Trirex.COM (Operator)
Organization: Trirex Systems Inc.
Date: Fri, 20 Nov 1992 22:33:13 GMT
Lines: 24