{"id":1030,"date":"2016-07-28T07:39:20","date_gmt":"2016-07-27T22:39:20","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1030"},"modified":"2018-05-12T13:03:49","modified_gmt":"2018-05-12T04:03:49","slug":"nsnull","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1030","title":{"rendered":"[Obj-C] NSNull"},"content":{"rendered":"<p>NSDictionary\u3084NSArray\u306e\u8981\u7d20\u3068\u3057\u3066nil\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002<br \/>\nnil\u306e\u4ee3\u308f\u308a\u306b[NSNull null]\u3092\u683c\u7d0d\u3059\u308b\u3002<\/p>\n<p>[NSNull null]\u306f\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u3002\u305f\u3060\u4e00\u3064\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53c2\u7167\u3059\u308b\u3002<\/p>\n<p>[NSNull null] \u3068 nil \u306e\u6bd4\u8f03\u306f\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u6bd4\u8f03\u306e\u4f8b<\/h4>\n<pre class=\"lang:default decode:true \" >NSDictionary *aDictionary = ...\r\n\r\nNSString *aName = [aDictionary objectForKey:@\"name\"];\r\nNSString *aMessage;\r\n\r\nif (![aName isEqual:[NSNull null]) {\r\n  aMessage = [aName stringByAppendingString:@\" has passed.\"];\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h4>NSLog\u306e\u51fa\u529b\u306e\u9055\u3044<\/h4>\n<pre class=\"lang:default decode:true \" >NSLog(@\"nil:%@\", nil);  \/\/ nil:(null)<\/pre>\n<pre class=\"lang:default decode:true \" >NSLog(@\"[NSNull null]:%@\", [NSNull null]);  \/\/ [NSNull null]:<null><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NSDictionary\u3084NSArray\u306e\u8981\u7d20\u3068\u3057\u3066nil\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002 nil\u306e\u4ee3\u308f\u308a\u306b[NSNull null]\u3092\u683c\u7d0d\u3059\u308b\u3002 [NSNull null]\u306f\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u3002\u305f\u3060\u4e00\u3064\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53c2\u7167\u3059\u308b\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[28],"class_list":["post-1030","post","type-post","status-publish","format-standard","hentry","category-memo","tag-objective-c"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1030"}],"version-history":[{"count":5,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1030\/revisions"}],"predecessor-version":[{"id":2337,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1030\/revisions\/2337"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}