{"id":1894,"date":"2024-11-23T12:23:44","date_gmt":"2024-11-23T12:23:44","guid":{"rendered":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894"},"modified":"2024-11-25T20:10:13","modified_gmt":"2024-11-25T20:10:13","slug":"nsuserdefaults","status":"publish","type":"post","link":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894","title":{"rendered":"NSUserDefaults"},"content":{"rendered":"<h2>\u30b5\u30f3\u30d7\u30eb<\/h2>\n<pre><code>AppDelegate.m\r\n@implementation AppDelegate\r\n\r\n- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {\r\n    \/\/ Insert code here to initialize your application\r\n    NSUserDefaults *ud = [NSUserDefaults standardUserDefaults]; \/\/ \u53d6\u5f97\r\n    [ud setObject:@\"hoge\" forKey:@\"KEY_S\"];\r\n    [ud synchronize];\r\n}<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/glassonion.hatenablog.com\/entry\/20110920\/1316473990\">https:\/\/glassonion.hatenablog.com\/entry\/20110920\/1316473990<\/a><\/p>\n<p>\u4fdd\u5b58\u5834\u6240<\/p>\n<p>Non SandBox: \/Users\/\u30e6\u30fc\u30b6\u540d\/Library\/Preferences<\/p>\n<p>SandBox: \/Users\/\u30e6\u30fc\u30b6\u540d\/Library\/Containers\/\u30a2\u30d7\u30ea\u540d\/Data\/Library\/Preferences\/<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1901\" src=\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2024\/11\/userdefaults.png\" alt=\"\" width=\"700\" height=\"382\" srcset=\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2024\/11\/userdefaults.png 700w, https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2024\/11\/userdefaults-300x164.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p><del>\u306a\u306e\u3060\u305d\u3046\u3060\u304c\u3001\u30c7\u30d0\u30c3\u30b0\u6642\u306b\u305d\u308c\u3089\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u306f\u306a\u304b\u3063\u305f\u306a\uff1f\uff1f\uff1f<\/del><\/p>\n<p>\u2192registerDefaults \u30e1\u30bd\u30c3\u30c9\u306f\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3057\u307e\u305b\u3093\uff01<\/p>\n<p>\u3057\u304b\u3057\u3001standard \u3068 shared \u306e\u9055\u3044\u304c\u308f\u304b\u3089\u3093\u306a\u3042\u3002<\/p>\n<p>\u2192shared \u306f\u6587\u5b57\u3069\u304a\u308a\u300c\u5171\u6709\u300d\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3002<br \/>\n\u4f55\u3068\u5171\u6709\u3059\u308b\u304b\u306f\u3001\u3053\u306e<a href=\"https:\/\/developer.apple.com\/jp\/documentation\/app_clips\/making_data_available_to_the_app_clip_s_corresponding_app\/\">\u8a18\u4e8b<\/a>\u306b\u3088\u308c\u3070\u3001\u540c\u3058\u30b0\u30eb\u30fc\u30d7\u9593\u3067\u3001\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u306e\u3060\u304c\u3001\u4f7f\u3063\u305f\u3053\u3068\u306f\u306a\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30f3\u30d7\u30eb AppDelegate.m @implementation AppDelegate &#8211; (void)applicationDidFinishLaunching:(NSNotification *)aNotifi &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;NSUserDefaults&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":3,"featured_media":1003,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[12,50],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>NSUserDefaults | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NSUserDefaults | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011\" \/>\n<meta property=\"og:description\" content=\"\u30b5\u30f3\u30d7\u30eb AppDelegate.m @implementation AppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)aNotifi &hellip; &quot;NSUserDefaults&quot; \u306e\u7d9a\u304d\u3092\u8aad\u3080\" \/>\n<meta property=\"og:url\" content=\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894\" \/>\n<meta property=\"og:site_name\" content=\"\u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Akiba.Chan.2021\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-23T12:23:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-25T20:10:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/03\/xocde-akiba-phazor.png\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"530\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AkibaChan3\" \/>\n<meta name=\"twitter:site\" content=\"@AkibaChan3\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79cb\u8449\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#website\",\"url\":\"https:\/\/p-horlix.net\/umamusume-phazor\/\",\"name\":\"\u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011\",\"description\":\"\u30a6\u30de\u5a18\u95a2\u9023\u306e\u30cd\u30bf\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u304b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/03\/xocde-akiba-phazor.png\",\"contentUrl\":\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/03\/xocde-akiba-phazor.png\",\"width\":900,\"height\":530},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#webpage\",\"url\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894\",\"name\":\"NSUserDefaults | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011\",\"isPartOf\":{\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#primaryimage\"},\"datePublished\":\"2024-11-23T12:23:44+00:00\",\"dateModified\":\"2024-11-25T20:10:13+00:00\",\"author\":{\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#\/schema\/person\/6a538594548c2ec36955811c54070308\"},\"breadcrumb\":{\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\/\/p-horlix.net\/umamusume-phazor\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"NSUserDefaults\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#\/schema\/person\/6a538594548c2ec36955811c54070308\",\"name\":\"\u79cb\u8449\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#personlogo\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7f6d2dae0b83715553d92792c84890d9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7f6d2dae0b83715553d92792c84890d9?s=96&d=mm&r=g\",\"caption\":\"\u79cb\u8449\"},\"url\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?author=3\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NSUserDefaults | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894","og_locale":"ja_JP","og_type":"article","og_title":"NSUserDefaults | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","og_description":"\u30b5\u30f3\u30d7\u30eb AppDelegate.m @implementation AppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)aNotifi &hellip; \"NSUserDefaults\" \u306e\u7d9a\u304d\u3092\u8aad\u3080","og_url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894","og_site_name":"\u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","article_publisher":"https:\/\/www.facebook.com\/Akiba.Chan.2021\/","article_published_time":"2024-11-23T12:23:44+00:00","article_modified_time":"2024-11-25T20:10:13+00:00","og_image":[{"width":900,"height":530,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/03\/xocde-akiba-phazor.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@AkibaChan3","twitter_site":"@AkibaChan3","twitter_misc":{"\u57f7\u7b46\u8005":"\u79cb\u8449"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#website","url":"https:\/\/p-horlix.net\/umamusume-phazor\/","name":"\u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","description":"\u30a6\u30de\u5a18\u95a2\u9023\u306e\u30cd\u30bf\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u304b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/p-horlix.net\/umamusume-phazor\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"ImageObject","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#primaryimage","inLanguage":"ja","url":"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/03\/xocde-akiba-phazor.png","contentUrl":"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/03\/xocde-akiba-phazor.png","width":900,"height":530},{"@type":"WebPage","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#webpage","url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894","name":"NSUserDefaults | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","isPartOf":{"@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#website"},"primaryImageOfPage":{"@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#primaryimage"},"datePublished":"2024-11-23T12:23:44+00:00","dateModified":"2024-11-25T20:10:13+00:00","author":{"@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#\/schema\/person\/6a538594548c2ec36955811c54070308"},"breadcrumb":{"@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1894#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/p-horlix.net\/umamusume-phazor"},{"@type":"ListItem","position":2,"name":"NSUserDefaults"}]},{"@type":"Person","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#\/schema\/person\/6a538594548c2ec36955811c54070308","name":"\u79cb\u8449","image":{"@type":"ImageObject","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#personlogo","inLanguage":"ja","url":"https:\/\/secure.gravatar.com\/avatar\/7f6d2dae0b83715553d92792c84890d9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7f6d2dae0b83715553d92792c84890d9?s=96&d=mm&r=g","caption":"\u79cb\u8449"},"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?author=3"}]}},"jetpack_featured_media_url":"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/03\/xocde-akiba-phazor.png","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1097,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1097","url_meta":{"origin":1894,"position":0},"title":"CoreData \u518d\u3073","date":"2023-04-17","format":false,"excerpt":"\u4ee5\u524d\u306b\u300eObjective-C \u518d\u5165\u9580 -1.0.2- coreData \u3092\u4f7f\u3046\u300f\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u2026","rel":"","context":"ORM","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/04\/coredata-objc-oneto-manyto-900.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":446,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=446","url_meta":{"origin":1894,"position":1},"title":"Payara 6 \u3092\u4f7f\u3046","date":"2022-11-24","format":false,"excerpt":"WildFly, TomEE ,GlassFish \u3068\u304d\u305f\u306e\u3067\u3001\u3053\u3053\u306f\u5f53\u7136\uff1f payara \u306b\u3082\u624b\u3092\u2026","rel":"","context":"MacOS","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2022\/11\/introduction-payara.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":853,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=853","url_meta":{"origin":1894,"position":2},"title":"cmake \u3067 framework \u3092\u751f\u6210\u3059\u308b","date":"2023-02-13","format":false,"excerpt":"\u3053\u306e\u524d\u306e\u8a18\u4e8b\u3067\u3001cmake \u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067 cocoa \u306e framework \u3092\u4f5c\u6210\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u2026","rel":"","context":"CMake","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/cmake-framework-option-e1676276450487.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":941,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=941","url_meta":{"origin":1894,"position":3},"title":"Xcode \u3067 GUI \u30a2\u30d7\u30ea","date":"2023-03-08","format":false,"excerpt":"\u3053\u308c\u307e\u3067\u3001\u4e3b\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304d\u305f\u3002 \u3042\u308b\u7a0b\u5ea6\u3001Objective-C \u306e\u69d8\u5b50\u3082\u308f\u304b\u3063\u2026","rel":"","context":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/03\/cocoa-objective-c-gui-xcode.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1319,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1319","url_meta":{"origin":1894,"position":4},"title":"CoreData \u307f\u305f\u3073w","date":"2023-11-01","format":false,"excerpt":"\u3059\u3063\u304b\u308a CoreData \u306e\u4f7f\u3044\u65b9\u3092\u5fd8\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u6700\u521d\u304b\u3089\u3002 NSPersistentConta\u2026","rel":"","context":"ORM","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2022\/11\/apple-mac-tips.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1283,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1283","url_meta":{"origin":1894,"position":5},"title":"retain, release \u3068 -fno-objc-arc","date":"2023-05-11","format":false,"excerpt":"\u3053\u308c\u307e\u3067 UI \u30d1\u30fc\u30c4\u306e\u4f7f\u3044\u65b9\u3092\u5272\u3068\u4e01\u5be7\u306b\u304a\u3055\u3048\u3066\u304d\u305f\u304c\u3001\u3053\u3053\u3089\u8fba\u3067 cocoa \uff08\u6700\u8fd1\u3060\u3068 App\u2026","rel":"","context":"MacOS","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/posts\/1894"}],"collection":[{"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1894"}],"version-history":[{"count":10,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions"}],"predecessor-version":[{"id":1913,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions\/1913"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/media\/1003"}],"wp:attachment":[{"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}