Problem: 1646792

Title: (TSaveFileDocCommand) cSaveCopy acts as cSaveAs

Received: Apr 10 1997 3:13PM


The cSaveCopy command turns itself into cSaveAs at some point before ::DoIt is called. There appears to be no way to perform a cSaveCopy command in MacApp v3.3.1.

I thought the problem was due to the internal appleevent that is generated by MacApp 3.3.1 not containing the save copy boolean. However, I turned off the flag to use appleevents thinking I had fixed the bug and found that somehow the command was still being changed to be a cSaveAs command at some point before DoIt was called. I decided I better check if this is a known bug and if there is a known work around before spending more time reseaching it myself.


Fix:

Changed TDocument.h/.cp and TFileBasedDocument.h/.cp.

Fixed while working on the saving commands and related AppleEvents by breaking the TSaveDocCommand up into three distinct commands for handling Save, Save As..., and Save a Copy....