{"id":5181,"date":"2012-06-27T13:53:23","date_gmt":"2012-06-27T18:53:23","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=5181"},"modified":"2018-02-13T14:40:17","modified_gmt":"2018-02-13T19:40:17","slug":"sandboxing-core-data-and-migrations","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/06\/27\/sandboxing-core-data-and-migrations\/","title":{"rendered":"Sandboxing Core Data and Migrations"},"content":{"rendered":"<p><a href=\"http:\/\/www.codeotaku.com\/blog\/2012-06\/sandboxing-core-data-and-migrations\/index\">Samuel Williams<\/a>:<\/p>\r\n<blockquote cite=\"http:\/\/www.codeotaku.com\/blog\/2012-06\/sandboxing-core-data-and-migrations\/index\"><p>As Property Manager acquires new features (in this case, additional tagging and notation facilities), the data model needs to be updated. This in turn depends on CoreData to migrate the user&rsquo;s previous documents to the latest data model. Traditionally, CoreData migrates the data transparently when the user opens the file, however here lies the problem with sandboxing: the updated file cannot be saved to disk unless the user is presented a <code class=\"syntax clang\">NSSavePanel<\/code>. Because of this, automatic migrations will fail.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Samuel Williams: As Property Manager acquires new features (in this case, additional tagging and notation facilities), the data model needs to be updated. This in turn depends on CoreData to migrate the user&rsquo;s previous documents to the latest data model. Traditionally, CoreData migrates the data transparently when the user opens the file, however here lies [&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":[131,109,30,53],"class_list":["post-5181","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-bug","tag-coredata","tag-mac","tag-sandboxing"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5181","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=5181"}],"version-history":[{"count":4,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5181\/revisions"}],"predecessor-version":[{"id":5191,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5181\/revisions\/5191"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=5181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=5181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=5181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}