FROM : Cameron Hayne
DATE : Wed Nov 20 17:08:30 2002
On 19/11/02 2:38 pm, "Donald Brown" <<email_removed>> 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_removed>)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Wed Nov 20 17:08:30 2002
On 19/11/02 2:38 pm, "Donald Brown" <<email_removed>> 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_removed>)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Donald Brown | Nov 19, 20:38 | |
| Ondra Cada | Nov 20, 14:36 | |
| Cameron Hayne | Nov 20, 17:08 | |
| Donald Brown | Nov 20, 20:49 | |
| Rosyna | Nov 20, 22:00 | |
| Ondra Cada | Nov 20, 22:19 | |
| Rosyna | Nov 20, 23:25 | |
| Michael Norris | Nov 21, 00:21 | |
| Ondra Cada | Nov 21, 00:29 | |
| Rosyna | Nov 21, 00:31 | |
| Ondra Cada | Nov 21, 00:32 | |
| Malte Tancred | Nov 21, 12:07 | |
| mw | Nov 21, 12:28 | |
| Malte Tancred | Nov 21, 13:47 | |
| Ondra Cada | Nov 21, 14:54 |






Cocoa mail archive

