{"id":10345,"date":"2014-12-18T13:11:32","date_gmt":"2014-12-18T18:11:32","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=10345"},"modified":"2014-12-27T19:32:11","modified_gmt":"2014-12-28T00:32:11","slug":"mac-document-model-dont-lose-my-data","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2014\/12\/18\/mac-document-model-dont-lose-my-data\/","title":{"rendered":"Mac Document Model: Don&rsquo;t Lose My Data"},"content":{"rendered":"<p><a href=\"http:\/\/glennreid.blogspot.com\/2014\/12\/apple-dont-lose-my-data.html\">Glenn Reid<\/a>:<\/p>\n<blockquote cite=\"http:\/\/glennreid.blogspot.com\/2014\/12\/apple-dont-lose-my-data.html\"><p>I was editing an important file, but left it open (commonplace, and usually not destructive).  Meanwhile, I edited the same file on another computer, with different changes, and saved it to my shared (Dropbox) location, so it sync&rsquo;ed out from under TextEdit.<\/p><p>This has happened countless times in the past, and TextEdit was smart enough to notice it, and tell me not to save over the other file.  This dialog box purports to do the same thing, <em>BUT WITH A CRITICAL DIFFERENCE.<\/em>  It does not allow me to Save As&#8230; to preserve my changes (because Save As&#8230; is not a feature any more!).<\/p><p>My two choices are <em>[LOSE CHANGES]<\/em> and <em>[LOSE OTHER CHANGES]<\/em>.  How is that a good choice?<\/p><\/blockquote>\n<p>I still find the new document model confusing. If I open a file in TextEdit and start typing, the indicator in the window&rsquo;s close box shows that there are changes. This used to mean <em>unsaved changes<\/em>, but now it means something like <em>changes since opening the document<\/em>. Viewing the file with Quick Look or BBEdit shows that TextEdit has <em>already<\/em> saved the changes to disk. The file on disk does not match my last explicit save point, which is the way Macs worked for nearly 30 years. Instead, if I close the TextEdit window and elect not to save changes, TextEdit <em>then<\/em> fetches the last explicitly saved version of the file and writes it on top of the newer version on disk.<\/p>\n<p>In short, the contents on disk always match the contents in the window, but you have the opportunity to revert if you want. This is inconsistent with history and with applications that don&rsquo;t or can&rsquo;t use the new document model. And it causes confusion in situations like the one Reid describes.<\/p>\n<p>I&rsquo;m glad to see Reid <a href=\"http:\/\/mjtsai.com\/blog\/2013\/01\/22\/what-its-really-like-working-with-steve-jobs\/\">blogging<\/a> <a href=\"http:\/\/mjtsai.com\/blog\/2013\/08\/14\/iphoto-11-deemphasizes-content\/\">again<\/a>. His new <a href=\"http:\/\/glennreid.blogspot.com\/2014\/12\/apple-ui-fail.html\">post about Safari<\/a> is also good.<\/p>\n<p>Update (2014-12-21): <a href=\"https:\/\/michelf.ca\/blog\/2014\/thoughts-on-autosave\/\">Michel Fortin<\/a>:<\/p>\n<blockquote cite=\"https:\/\/michelf.ca\/blog\/2014\/thoughts-on-autosave\/\">\n<p>A problem I see with the new model is that version management isn&rsquo;t that well done. Currently you have to open the document and navigate through a Time Machine-like UI to revert to an older version. If you just want to make a copy of the old version of a document somewhere, the way to accomplish that is terrible. It&rsquo;d be much better if the Finder could let you browse previous save points for a document (perhaps in the Get Info window?). It should also let you open those previous versions, copy them elsewhere, and delete the ones you no longer want. The side-by-side view within the app can be convenient at times but is also is a terrible at other times (such as when the app crashes when reading your corrupted document!).<\/p>\n<p>Perhaps another thing that is confusing is that there is actually <em>three<\/em> modes right now: the old model (save\/don&rsquo;t save\/cancel), the autosaving model one with no prompt, and the new autosaving model with a prompt (save\/revert changes\/cancel).<\/p>\n<\/blockquote>\n<p>Update (2014-12-27): <a href=\"http:\/\/brian-webster.tumblr.com\/post\/105817112399\/saving-versions-and-data-loss\">Brian Webster<\/a>:<\/p>\n<blockquote cite=\"http:\/\/brian-webster.tumblr.com\/post\/105817112399\/saving-versions-and-data-loss\"><p>This is the point where the aforementioned confusing language and UI comes in. If we take a closer look at this message, there is a key phrase that&rsquo;s easy to miss:<\/p>\n<blockquote>\n<p>Click Save Anyway to keep your changes and save the changes made by the other application <strong>as a version<\/strong>, or click Revert to keep the changes from the other application and save your changes <strong>as a version<\/strong>.<\/p>\n<\/blockquote>\n<p>This is the &ldquo;Versions&rdquo; part of Versions &amp; Autosave kicking in. No matter which button we choose, both versions of the document will be saved: our version from TextEdit, and the version written behind our backs by Dropbox\/nano. The only difference between the two choices is which version we will see in the TextEdit window immediately afterwards.<\/p>\n<p>After clicking &ldquo;Save Anyway&rdquo;, if we go to File &gt; Revert &gt; Browse All Versions&#8230;, we can see that both versions of the document are still available.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Glenn Reid: I was editing an important file, but left it open (commonplace, and usually not destructive). Meanwhile, I edited the same file on another computer, with different changes, and saved it to my shared (Dropbox) location, so it sync&rsquo;ed out from under TextEdit.This has happened countless times in the past, and TextEdit was smart [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[105,47,30,903,103,1050],"class_list":["post-10345","post","type-post","status-publish","format-standard","hentry","category-technology","tag-documentmodel","tag-dropbox","tag-mac","tag-mac-os-x-10-10-yosemite","tag-safari","tag-textedit"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=10345"}],"version-history":[{"count":4,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10345\/revisions"}],"predecessor-version":[{"id":10396,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10345\/revisions\/10396"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=10345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=10345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=10345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}