Re: Tracking files the right way
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.