On Apr 19, 2013, at 15:22:28, Quincey Morris 
<quinceymor...@rivergatesoftware.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to