Auto Save and Versions

Auto Save and Versions seem only to work in conjunction with the NSFileWrapper-using read/write method of NSDocument, ie

– readFromFileWrapper:ofType:error:
– fileWrapperOfType:error:

If you use only

– readFromURL:ofType:error:
– dataOfType:error:

then you get a warning that the file cannot be autosaved after having done the following:

  1. Restore a version of the document
  2. Modify the document
  3. Close the document

Source: cocoa-dev mailing list

Tags: cocoa