• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Advice on document handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Advice on document handling
      • From: Graham Cox <email@hidden>
References: 
 >Advice on document handling (From: John Brownie <email@hidden>)
 >Re: Advice on document handling (From: Graham Cox <email@hidden>)
 >Re: Advice on document handling (From: John Brownie <email@hidden>)

  • Prev by Date: NSReleasePool issue
  • Next by Date: Re: Advice on document handling
  • Previous by thread: Re: Advice on document handling
  • Next by thread: Re: Advice on document handling
  • Index(es):
    • Date
    • Thread