{"id":1908,"date":"2014-01-23T13:08:19","date_gmt":"2014-01-23T04:08:19","guid":{"rendered":"http:\/\/www23.atpages.jp\/~inoni\/?p=1908"},"modified":"2014-01-23T13:08:19","modified_gmt":"2014-01-23T04:08:19","slug":"xcode%e8%a6%9a%e6%9b%b8-core-data%e3%83%9e%e3%82%a4%e3%82%b0%e3%83%ac%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3","status":"publish","type":"post","link":"http:\/\/anada.cloudfree.jp\/?p=1908","title":{"rendered":"Xcode\u899a\u66f8 Core Data\/\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3"},"content":{"rendered":"<p>Xcode\u3067Master-Detail\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3063\u3066\u3001\u304a\u52c9\u5f37\u3092\u3057\u3066\u3044\u305f\u306e\u3060\u304c\u3001Detail\u306b\u8868\u793a\u3059\u308b\u30c7\u30fc\u30bf\u3092\u5897\u3084\u3057\u305f\u304f\u3066\u3001xcdatamodeld\u3092\u958b\u3044\u3066\u3001Attribution\u3092\u5897\u3084\u3057\u305f\u3002<\/p>\n<p>\u3063\u3066\u3001\u305d\u308c\u3060\u3051\u3067\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\u30fb\u30fb\u30fb<\/p>\n<p>\u8abf\u3079\u305f\u3089\u300c\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u3092\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff01\u3063\u3066\u306a\u3063\u3066\u3066\u3001\u300c\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u300d\u3063\u3066\u306a\u3093\u3084\u306d\u3093\uff1f\u3063\u3066\u306a\u3063\u305f\u3002<\/p>\n<p>\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u304c\u3001<\/p>\n<p>\u30fb\u53e4\u3044\u30c7\u30fc\u30bf\u304c\u6700\u65b0\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3068\u9055\u3046\u304b\u3089\u52d5\u304b\u3078\u3093\u306d\u3093<br \/>\n\u30fb\u305b\u3084\u304b\u3089\u3001\u53e4\u3044\u30c7\u30fc\u30bf\u6d88\u3057\u306a\u306f\u308c<br \/>\n\u30fb\u3067\u3082\u306a\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3044\u3046\u306e\u304c\u3042\u3063\u3066\u3001\u9805\u76ee\u306e\u5897\u6e1b\u3092\u3069\u306a\u3044\u304b\u3057\u3066\u304f\u308c\u308b\u3089\u3057\u3044\u308f<br \/>\n\u30fb\u81ea\u52d5\u3067\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u308f\u305b\u305f\u3044\u3093\u3084\u3063\u305f\u3089\u3001\u30b3\u30fc\u30c7\u30a3\u30cd\u30fc\u30bf\u69cb\u7bc9\u306eoption\u3092\u5909\u3048\u3068\u304d\uff01<\/p>\n<p>\u307e\u3041\u3001\u5927\u962a\u5f01\u3067\u8a00\u3046\u306a\u3089\u3053\u3093\u306a\u611f\u3058\u304b\u30fb\u30fb\u30fb<br \/>\n\uff08\u306f\u3057\u3087\u308a\u3059\u304e\u3060\u3051\u3069\uff09<\/p>\n<p>\u3067\u3001\u30bd\u30fc\u30b9\u306f\u3001<\/p>\n<p>NSDictionary <strong style=\"color:#f00\">*options<\/strong> = [NSDictionary dictionaryWithObjectsAndKeys:<br \/>\n                             [NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption,<br \/>\n                             [NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, nil];<\/p>\n<p>\u3068\u3001\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u3044\u3066\u3001<\/p>\n<p>[persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType<br \/>\n                            configuration:nil<br \/>\n                            URL:url<br \/>\n                            options:<strong style=\"color:#f00\">options<\/strong><br \/>\n                            error:&#038;err]);<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067nill\u306b\u306a\u3063\u3066\u3044\u308boptions\u30d1\u30e9\u30e1\u30fc\u30bf\uff1f\u3092\u8a2d\u5b9a\u3057\u305f\u5909\u6570\u306b\u5909\u66f4\u3059\u308b\u3002<\/p>\n<p>\uff08\u81ea\u5206\u3078\u306e\u899a\u66f8\uff09<br \/>\nEntity\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3001Attribute\u3092\u5897\u6e1b\u3055\u305b\u305f\u308a\u3057\u305f\u5f8c\u3001<br \/>\nCore Data\u306eNSManagedObject Subclass\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u3057\u304f\u4f5c\u6210\u3059\u308b\u306e\u3092\u5fd8\u308c\u305a\u306b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xcode\u3067Master-Detail\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3063\u3066\u3001\u304a\u52c9\u5f37\u3092\u3057\u3066\u3044\u305f\u306e\u3060\u304c\u3001Detail\u306b\u8868\u793a\u3059\u308b\u30c7\u30fc\u30bf\u3092\u5897\u3084\u3057\u305f\u304f\u3066\u3001xcdatamodeld\u3092\u958b\u3044\u3066\u3001Attribution\u3092\u5897\u3084\u3057\u305f\u3002 \u3063\u3066\u3001\u305d\u308c\u3060\u3051\u3067\u52d5\u304b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1908","post","type-post","status-publish","format-standard","hentry","category-xcodeiphoneipad"],"_links":{"self":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/1908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1908"}],"version-history":[{"count":0,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=\/wp\/v2\/posts\/1908\/revisions"}],"wp:attachment":[{"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1908"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/anada.cloudfree.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}