文件只是說,共享文檔控制器設置setAutosavingDelay
到什麼> 0應該這樣做,但在我的控制器調用可可NSDocument:讓自動保存工作
[[NSDocumentController sharedDocumentController] setAutosavingDelay:2.0];
後,自動保存似乎不工作:我在~/Library/Autosave Information/
中看不到任何東西,也沒有看到
[[[NSDocumentController sharedDocumentController] currentDocument] autosavedContentsFileURL]
已初始化。
請注意,在我的應用程序中,正常的加載和保存工作正常(keyedarchivers,我的文檔基於nscoding的類等)。
就像完整性檢查一樣,您確實對文檔進行了更改,以便自動保存某些內容? (並看看有什麼 - hasUnautosavedChanges報告) – 2009-01-03 03:34:25
和你的NSDocument返回是的autosavesInPlace? – Stephan 2012-12-07 06:45:14