Re: NSDocument autosavesInPlace + package file = no revert?

2017-02-25 Thread Markus Spoettl
On 25/02/17 21:01, Quincey Morris wrote: On Feb 25, 2017, at 11:16 , Markus Spoettl mailto:ms_li...@shiftoption.com>> wrote: My concern is that my packages can get huge in the 100MB to multiple GB range with hundreds of folders and thousands of individual files inside. Will the NSDocument stori

Re: NSDocument autosavesInPlace + package file = no revert?

2017-02-25 Thread Quincey Morris
On Feb 25, 2017, at 11:16 , Markus Spoettl wrote: > > My concern is that my packages can get huge in the 100MB to multiple GB range > with hundreds of folders and thousands of individual files inside. Will the > NSDocument storing system/AppKit cope with that? My understanding is that the vers

Re: NSDocument autosavesInPlace + package file = no revert?

2017-02-25 Thread Markus Spoettl
On 25/02/17 19:57, Quincey Morris wrote: Returning false from this method disables version browsing and revertToSaved(_:), which rely on version preservation when autosaving in place. IOW, you can’t expect reverting to revert in your situation. Thanks Quincey for the - as usual - super fast a

Re: NSDocument autosavesInPlace + package file = no revert?

2017-02-25 Thread Quincey Morris
On Feb 25, 2017, at 10:41 , Markus Spoettl wrote: > > I looked at what happens when the application quits and > > - (BOOL)revertToContentsOfURL:ofType:error: > > is called. The absoluteURL passed in is the original file URL. So it's not > surprising that this call doesn't actually revert any c

NSDocument autosavesInPlace + package file = no revert?

2017-02-25 Thread Markus Spoettl
Hi, I have a problem with autosavesInPlaces and my package document and reverting changes. The setup first: All of the following methods in my NSDocument subclass return YES + (BOOL)autosavesInPlace + (BOOL)autosavesDrafts - (BOOL)canAsynchronouslyWriteToURL::: - (BOOL)checkAutosavingSafety