Ever since I started using XCode, I've been experiencing a problem saving
files. Basically, for various reasons my code is stored on a Windows
machine, and I connect to it by mounting a folder using Samba. The files I
wish to build (.cpp and .h) are dragged in to my Xcode project, which
locates them and builds them with no problems.
However, when I edit the files, particularly header files, I find I can only
save them once. If I try to save them a second time, I get an error
indicating that the file could not be saved. When I look in the folder that
contains the file, there's a new file with the same name and a ~ appended
before the suffix, and that file cannot be deleted until XCode is closed.