{"id":6075,"date":"2012-09-20T22:32:29","date_gmt":"2012-09-21T03:32:29","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6075"},"modified":"2018-02-13T14:42:06","modified_gmt":"2018-02-13T19:42:06","slug":"concurrent-opening-core-data","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/09\/20\/concurrent-opening-core-data\/","title":{"rendered":"Adopting Concurrent Opening for Core Data-Based Documents"},"content":{"rendered":"<p><a href=\"http:\/\/www.mikeabdullah.net\/concurrently-open-core-data-docs.html\">Mike Abdullah<\/a>:<\/p>\r\n<blockquote cite=\"http:\/\/www.mikeabdullah.net\/concurrently-open-core-data-docs.html\"><p>It&rsquo;s pretty nifty, but the <a href=\"http:\/\/developer.apple.com\/library\/mac\/documentation\/cocoa\/reference\/ApplicationKit\/Classes\/NSPersistentDocument_Class\/Reference\/Reference.html\">NSPersistentDocument<\/a> docs make no mention of support for [<a href=\"https:\/\/developer.apple.com\/library\/mac\/documentation\/DataManagement\/Conceptual\/DocBasedAppProgrammingGuideForOSX\/ManagingLifecycle\/ManagingLifecycle.html#\/\/apple_ref\/doc\/uid\/TP40011179-CH4-SW6\">Concurrent Document Opening<\/a>] (admittedly they don&rsquo;t disavow it either), and I suspect it wouldn&rsquo;t work quite right if you just tried to blindly turn it on. Or, like us, you may be using Core Data in a document-based app, but not using NSPersistentDocument at all. Fortunately there&rsquo;s only a few things to bear in mind&#8230;<\/p><\/blockquote>\r\n<p>It&rsquo;s strange how developers like Core Data, and have adopted it widely, yet Apple doesn&rsquo;t seem to make much use of it in its apps and, perhaps for that reason, has not fully supported it in the frameworks and with new technologies such as <a href=\"http:\/\/mjtsai.com\/blog\/2012\/05\/28\/core-data-document-based-application-and-sandboxing\/\">sandboxing<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Mike Abdullah: It&rsquo;s pretty nifty, but the NSPersistentDocument docs make no mention of support for [Concurrent Document Opening] (admittedly they don&rsquo;t disavow it either), and I suspect it wouldn&rsquo;t work quite right if you just tried to blindly turn it on. Or, like us, you may be using Core Data in a document-based app, but [&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":[4],"tags":[69,109,30,71],"class_list":["post-6075","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-coredata","tag-mac","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6075","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=6075"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6075\/revisions"}],"predecessor-version":[{"id":6077,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6075\/revisions\/6077"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}