{"id":10124,"date":"2014-11-23T09:19:38","date_gmt":"2014-11-23T14:19:38","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=10124"},"modified":"2015-01-17T13:48:44","modified_gmt":"2015-01-17T18:48:44","slug":"nsatom-the-true-object","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2014\/11\/23\/nsatom-the-true-object\/","title":{"rendered":"NSAtom, the True Object"},"content":{"rendered":"<p><a href=\"http:\/\/brian-webster.tumblr.com\/post\/102637339374\/the-mystery-of-the-crashing-nspredicate\">Brian Webster<\/a>:<\/p>\n<blockquote cite=\"http:\/\/brian-webster.tumblr.com\/post\/102637339374\/the-mystery-of-the-crashing-nspredicate\">\n<p>In our case, if our method is returning a YES value, that will end up with a full value of 0x0000000000000001. If you try interpreting this value as an object, the runtime will think it is a tagged pointer, since the bottom bit is 1. OK then, so what kind of object is this exactly?<\/p>\n<p>[&#8230;]<\/p>\n<p>Ah, so it looks like, whether by design or by accident, no matter what message you send to NSAtom, it returns a value of 1.<\/p>\n<\/blockquote>\n<p>Update (2015-01-17): There&rsquo;s been further <a href=\"https:\/\/twitter.com\/optshiftk\/status\/556003477600477184\">discussion of NSAtom on Twitter<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Brian Webster: In our case, if our method is returning a YES value, that will end up with a full value of 0x0000000000000001. If you try interpreting this value as an object, the runtime will think it is a tagged pointer, since the bottom bit is 1. OK then, so what kind of object is [&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":[69,56,30,54,71],"class_list":["post-10124","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-debugging","tag-mac","tag-objective-c","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10124","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=10124"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10124\/revisions"}],"predecessor-version":[{"id":10509,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10124\/revisions\/10509"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=10124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=10124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=10124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}