Re: makeDocumentForURL:nil withContentsOfURL:fileURL causing deletion

2014-02-10 Thread Kevin Perry
Using -makeDocumentForURL:nil withContentsOfURL:non-nil was originally designed around the idea of reopening a document that was autosaved into ~/Library/Autosave Information after crash recovery or via the post-Lion Restore feature. When such documents are closed without saving, it is desired

Re: makeDocumentForURL:nil withContentsOfURL:fileURL causing deletion

2014-02-09 Thread Jerry Krinock
On 2014 Feb 08, at 11:43, Trygve Inda cocoa...@xericdesign.com wrote: However, if I close the window (thus closing the document) and choose to not save, the file package at fileURL is deleted. In order to keep a critical document from being deleted in this way, I think you should save it in

makeDocumentForURL:nil withContentsOfURL:fileURL causing deletion

2014-02-08 Thread Trygve Inda
I am reading a document in the format of the old version of my app and converting it to a new format. The old version is not a document at all but is a fixed data file in /Application Support/MyApp/ MyDocument *untitledDoc = [[NSDocumentController sharedDocumentController] makeDocumentForURL:nil

Re: makeDocumentForURL:nil withContentsOfURL:fileURL causing deletion

2014-02-08 Thread Markus Spoettl
On 2/8/14 8:43 PM, Trygve Inda wrote: I am reading a document in the format of the old version of my app and converting it to a new format. The old version is not a document at all but is a fixed data file in /Application Support/MyApp/ MyDocument *untitledDoc = [[NSDocumentController

Re: makeDocumentForURL:nil withContentsOfURL:fileURL causing deletion

2014-02-08 Thread Markus Spoettl
On 2/8/14 9:31 PM, Markus Spoettl wrote: On 2/8/14 8:43 PM, Trygve Inda wrote: I am reading a document in the format of the old version of my app and converting it to a new format. The old version is not a document at all but is a fixed data file in /Application Support/MyApp/ MyDocument