{"id":3708,"date":"2011-08-16T11:48:48","date_gmt":"2011-08-16T16:48:48","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=3708"},"modified":"2011-08-16T11:48:50","modified_gmt":"2011-08-16T16:48:50","slug":"po-nsnumber-numberwithboolno-outputs-1","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2011\/08\/16\/po-nsnumber-numberwithboolno-outputs-1\/","title":{"rendered":"po [NSNumber numberWithBool:NO] Outputs 1"},"content":{"rendered":"<p><a href=\"http:\/\/objectivistc.tumblr.com\/post\/8992822737\/a-chocking-mystery-po-nsnumber-numberwithbool-no\">Bavarious<\/a>:<\/p>\n<blockquote cite=\"http:\/\/objectivistc.tumblr.com\/post\/8992822737\/a-chocking-mystery-po-nsnumber-numberwithbool-no\"><p>[T]here&rsquo;s a symbol called <code>NO<\/code> that was loaded onto the address 0x9374bc6a73a0a1. Since the address is different from 0, <code>+numberWithBool:<\/code> returns an <code>NSNumber<\/code> representing a true value.<\/p><\/blockquote>\n<p>But when you&rsquo;re not in gdb, the value of <code>NO<\/code> is supplied by the preprocessor.<\/p>","protected":false},"excerpt":{"rendered":"<p>Bavarious: [T]here&rsquo;s a symbol called NO that was loaded onto the address 0x9374bc6a73a0a1. Since the address is different from 0, +numberWithBool: returns an NSNumber representing a true value. But when you&rsquo;re not in gdb, the value of NO is supplied by the preprocessor.<\/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":[],"class_list":["post-3708","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3708","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=3708"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3708\/revisions"}],"predecessor-version":[{"id":3709,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3708\/revisions\/3709"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=3708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=3708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=3708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}