Re: Exclusive File Access
Re: Exclusive File Access
- Subject: Re: Exclusive File Access
- From: Cameron Hayne <email@hidden>
- Date: Wed, 20 Nov 2002 11:08:30 -0500
On 19/11/02 2:38 pm, "Donald Brown" <email@hidden> wrote:
>
Here's the problem with my app, that my customers can run into. Person A
>
opens file (which reads it all into RAM), Person B opens file (ditto),
>
Person A makes changes and saves it, Person B makes changes and saves it.
>
Person A's changes are thrown away, there is no warning that anything is
>
wrong. This is bad.
There are lots of ways you can deal with this. One would be to create a
"semaphore" file indicating that the document file is being edited. When
person B opens the file, he/she is told that someone else is editing it and
given the option to open a read-only version or to edit a (renamed) copy of
the file. I believe this is what MS Word does.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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.