{"id":41754,"date":"2024-01-11T14:22:36","date_gmt":"2024-01-11T19:22:36","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=41754"},"modified":"2024-01-11T14:22:36","modified_gmt":"2024-01-11T19:22:36","slug":"displaying-progress-is-hard","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2024\/01\/11\/displaying-progress-is-hard\/","title":{"rendered":"Displaying Progress Is Hard"},"content":{"rendered":"<p><a href=\"https:\/\/eclecticlight.co\/2024\/01\/06\/are-we-making-good-progress\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2024\/01\/06\/are-we-making-good-progress\/\">\n<p>When I copied some files from iCloud Drive, instead of seeing a progress indicator reporting that they were being downloaded from iCloud, the dialog claimed that it was &ldquo;preparing to move&rdquo; the document in question. These preparations took some considerable time, during which the Finder&rsquo;s status bar revealed what was actually taking the time: it was &ldquo;downloading 1 item&rdquo;, and reported its progress in doing so. For much of that time, the progress bar in the dialog showed that its &lsquo;preparations&rsquo; were actually complete.<\/p>\n<p>[&#8230;]<\/p>\n<p>What happens when the sparse file can preserve the special format during copying, is that the determinate progress bar assumes the worst, and the full size of the file is used to calculate progress. When the amount of data transferred reaches the sparse file size on the destination, long before the bar has even got to 50%, the copy suddenly completes, apparently after only a small part of the task has been completed, leaving the user as surprised as the Finder must have been.<\/p>\n<p>Unfortunately, there appears to be no way to discover in advance how much data will need to be transferred.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/12\/14\/icloud-drive-in-sonoma-fileprovider-and-eviction\/\">iCloud Drive in Sonoma: FileProvider and Eviction<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/10\/27\/icloud-drive-switches-to-dataless-files\/\">iCloud Drive Switches to Dataless Files<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/05\/11\/getting-ready-for-dataless-files\/\">Getting Ready for Dataless Files<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/02\/01\/pausing-finder-copies-and-dragging-to-the-app-switcher\/\">Pausing Finder Copies and Dragging to the App Switcher<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/01\/10\/visual-feedback-for-running-shortcuts\/\">Visual Feedback for Running Shortcuts<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2015\/01\/25\/an-example-on-how-to-use-nsprogress\/\">An Example on How to Use NSProgress<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Howard Oakley: When I copied some files from iCloud Drive, instead of seeing a progress indicator reporting that they were being downloaded from iCloud, the dialog claimed that it was &ldquo;preparing to move&rdquo; the document in question. These preparations took some considerable time, during which the Finder&rsquo;s status bar revealed what was actually taking the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-01-11T19:22:39Z","apple_news_api_id":"c0e3f315-ec1b-4933-b14f-46458f9cf5cf","apple_news_api_modified_at":"2024-01-11T19:22:39Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AwOPzFewbSTOxT0ZFj5z1zw","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":[458,913,30,2385],"class_list":["post-41754","post","type-post","status-publish","format-standard","hentry","category-technology","tag-finder","tag-icloud-drive","tag-mac","tag-macos-14-sonoma"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/41754","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=41754"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/41754\/revisions"}],"predecessor-version":[{"id":41755,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/41754\/revisions\/41755"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=41754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=41754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=41754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}