Re: Turn autosaving on forever - is it OK?
Re: Turn autosaving on forever - is it OK?
- Subject: Re: Turn autosaving on forever - is it OK?
- From: Vitaly Ovchinnikov <email@hidden>
- Date: Sat, 24 Jan 2009 05:41:33 +0300
Michael, cocoa's embedded autosaving saves to separate file and leave
the main document dirty. It helps only in case of power lost or
software hang. But as it runs in background, some conflicts are
possible. That's what I wanted to know.
On Sat, Jan 24, 2009 at 5:13 AM, Michael Ash <email@hidden> wrote:
> On Fri, Jan 23, 2009 at 2:37 PM, Vitaly Ovchinnikov
> <email@hidden> wrote:
>> Hello list,
>>
>> I implemented autosaving via -setAutosavingDelay call of
>> NSDocumentController. I placed checkbox that allows to enable or
>> disable autosaving in preferences and now think about removing this
>> checkbox and leave autosaving enabled forever. Will I have any
>> problems in that case? Maybe in some cases it is better to allow user
>> to disable autosaving. Please share your experience.
>
> Reasons not to autosave:
>
> - I'm making some temporary changes that I don't want to keep.
> - I'm running on a laptop and trying to keep the hard drive spun down.
> - Saving is a long, slow process (either because it's a big file or
> because it's being saved to a file server running on dialup in Outer
> Mongolia) and it's annoying when it interrupts my work.
>
> I'd say if you're going to autosave, go all the way and save the
> document after every single change (maybe with some intelligent
> coalescing so that you don't, say, write out a whole new file to disk
> with every single keystroke). It's going to be confusing to have my
> document be dirty after I change it, but magically become clean after
> some period of time has passed.
>
> Mike
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden