Re: Temporarily disabling autosave
Re: Temporarily disabling autosave
- Subject: Re: Temporarily disabling autosave
- From: Steve Mills <email@hidden>
- Date: Fri, 19 Apr 2013 16:39:42 -0500
On Apr 19, 2013, at 15:22:28, Quincey Morris <email@hidden> wrote:
> a. When you get an autosave during playback, can you save the dirty state of the document, return a YES result but not actually autosave, then when playback stops, if you have this saved state, restore it (via NSChangeReadOtherContents or whatever)? The downside is that if your app crashes during playback, the pending changes are lost.
>
> b. At a higher level, force an autosave to occur just before playback starts, then don't let the document get dirtied till playback ends.
Interesting. I start with trying out (b) first. This indeed caused it to autosave, but because our playback is a very complicated and decades old process, some parts of playback actually dirty the doc, so autosave will happen again during playback. And because of this annoying behavior, I'm brought back to something I tried similar to (a), and that throws the Cocoa autosave status out of whack.
Grrr.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
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