Problem: 1658912
Title: (ACS) CFile_AC::IsSameFile prevents user from saving file in local machine
Received: May 27 1997 5:55PM
In the new version of TFile::IsSameFile there is a new line:
this->UpdateFileSpec();This method makes a call to ResolveAlias() that gives me a problem in this senario:
... anErr = ResolveAlias(NULL, fAlias, &fFileSpec, &wasChanged); if (anErr != userCanceledErr) FailOSErr(anErr); ...It turns out that the ResolveAlias call returns an error, -1070, and then the FailOSErr occurs. In MacApp 3.3, the call to UpdateFileSpec is not there and the user is allowed to save his file to the local machine.
After taking a look at this for a little bit I'd suggest that you try installing a try/catch in IsSameFile around UpdateFileSpec which returns a false indicating that it is not the same file. This might cause problems in cases where the target file is supposed to be kept open but that'll take a bit more research.