Re: Advice on document handling
Re: Advice on document handling
- Subject: Re: Advice on document handling
- From: John Brownie <email@hidden>
- Date: Fri, 20 Jun 2014 12:37:24 +1000
OK, thank you for the pointers. After a lot of refactoring, I've got
things working without deadlocks, and cleaned up various things on the way.
However, the autosave is getting too expensive for the bundled document.
I've done some testing to show this, so I need to be smarter about
saving, only saving component files that have actually changed. I can
see that I will get there by using
writeToURL:ofType:forSaveOperation:originalContentsURL:error: and
examining the existing bundle. However, I haven't been able to find out
how to determine if a particular object has changed since the version on
disk. In particular, there is only one undo manager for the document,
but there are several files that are managed by the document, and I
can't see how to see what has changed.
I must be missing something obvious, so would welcome someone pointing
me in the right direction on this one.
John
--
John Brownie, email@hidden or email@hidden
Summer Institute of Linguistics | Mussau-Emira language, Mussau Is.
Ukarumpa, Eastern Highlands Province | New Ireland Province
Papua New Guinea | Papua New Guinea
_______________________________________________
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