• 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: Tracking files the right way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracking files the right way


  • Subject: Re: Tracking files the right way
  • From: Charles Srstka <email@hidden>
  • Date: Mon, 2 Sep 2002 13:11:21 -0500

On Monday, September 2, 2002, at 09:15 AM, Malte Tancred wrote:

So, to get back on track, it looks to me like a good solution would be to

1) based on user preference optionally make a backup copy of the original file;
2) make an editable copy of the original file;
3) atomically exchange the editable and original files.

The question then is, which API should you use? If at stage 2 and 3 you use FSpExchangeFiles you'd keep aliases happy, but does this technique work on NFS or samba volumes?

Where should the temporary file be stored? In the same directory/folder or in a local temp folder? Who should decide? The programmer? The API?

Well ideally, it would be best if the Cocoa API would do this for us.

You guys might want to send Apple feedback to use FSpExchangeFiles...

Charles
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Tracking files the right way (From: Malte Tancred <email@hidden>)

  • Prev by Date: Re: Newbie: two tables on one window, how to talk to them?
  • Next by Date: Formatting @".15g" with NSNumberFormatter?
  • Previous by thread: Re: Tracking files the right way
  • Next by thread: Re: Tracking files the right way
  • Index(es):
    • Date
    • Thread