• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File saving problem.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File saving problem.


  • Subject: Re: File saving problem.
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 24 May 2005 22:14:48 -0700


On May 24, 2005, at 7:56 PM, Matt Fox-Wilson wrote:

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.



The foo~.c is the backup file automatically saved by NSDocument for us.  Usually those files only last for a few milliseconds, then AppKit deletes them.  Apparently in your configuration the backups are not getting deleted when the underlying file is saved successfully, so future saves fail because the file can't be moved to be the new backup (because the old backup is in the way).

It would help to know the permissions of the directory on the smb server, and whether the files are put there by a SCM system (e.g. Perforce).

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: File saving problem.
      • From: Hugh Sontag <email@hidden>
References: 
 >File saving problem. (From: "Matt Fox-Wilson" <email@hidden>)

  • Prev by Date: Re: Duplicate panel in style inspector settings
  • Next by Date: Re: Subversion
  • Previous by thread: File saving problem.
  • Next by thread: Re: File saving problem.
  • Index(es):
    • Date
    • Thread