{"id":31373,"date":"2021-01-19T16:33:26","date_gmt":"2021-01-19T21:33:26","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=31373"},"modified":"2021-01-19T16:33:50","modified_gmt":"2021-01-19T21:33:50","slug":"nssavepanel-crashes-on-big-sur","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2021\/01\/19\/nssavepanel-crashes-on-big-sur\/","title":{"rendered":"NSSavePanel Crashes on Big Sur"},"content":{"rendered":"<p><a href=\"https:\/\/christiantietze.de\/posts\/2021\/01\/nssavepanel-uti-crash-big-sur\/\">Christian Tietze<\/a>:<\/p>\n<blockquote cite=\"https:\/\/christiantietze.de\/posts\/2021\/01\/nssavepanel-uti-crash-big-sur\/\"><p>By now, I expected <code>NSSavePanel.allowedContentTypes<\/code> to work, and then to have Xcode suggest to wrap access to that property in an if-<code>@available<\/code> block. But that doesn&rsquo;t work at all. With macOS 10.15 Catalina being my main dev machine, I cannot use the new API at all at the moment, it seems, no matter what I set the deployment target to.<\/p><p>[&#8230;]<\/p><p>It actually turns out that <code>public.csv<\/code> is not a built-in file type recognized by macOS. <a href=\"https:\/\/developer.apple.com\/library\/archive\/documentation\/Miscellaneous\/Reference\/UTIRef\/Articles\/System-DeclaredUniformTypeIdentifiers.html#\/\/apple_ref\/doc\/uid\/TP40009259-SW1\">The archived docs for UTIs<\/a> list many UTIs, but not CSV.<\/p><p>So make sure to check your assumptions when you write apps that export data without actually <em>registering<\/em> the exported file type UTIs!<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Christian Tietze: By now, I expected NSSavePanel.allowedContentTypes to work, and then to have Xcode suggest to wrap access to that property in an if-@available block. But that doesn&rsquo;t work at all. With macOS 10.15 Catalina being my main dev machine, I cannot use the new API at all at the moment, it seems, no matter [&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":"2021-01-19T21:33:30Z","apple_news_api_id":"01b77c80-380d-4430-9ead-29b4388f2feb","apple_news_api_modified_at":"2021-01-19T21:33:53Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AAbd8gDgNRDCerSm0OI8v6w","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":[4],"tags":[131,69,1857,30,1666,1891,71,901,768],"class_list":["post-31373","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-bug","tag-cocoa","tag-csv","tag-mac","tag-macos-10-15","tag-macos-11-0","tag-programming","tag-swift-programming-language","tag-uniform-type-identifier"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31373","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=31373"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31373\/revisions"}],"predecessor-version":[{"id":31374,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31373\/revisions\/31374"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=31373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=31373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=31373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}