{"id":6027,"date":"2012-09-20T16:17:50","date_gmt":"2012-09-20T21:17:50","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6027"},"modified":"2012-09-20T16:17:59","modified_gmt":"2012-09-20T21:17:59","slug":"nscharacterset","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/09\/20\/nscharacterset\/","title":{"rendered":"NSCharacterSet"},"content":{"rendered":"<p><a href=\"http:\/\/nshipster.com\/nscharacterset\/\">Mattt Thompson<\/a>:<\/p>\n<blockquote cite=\"http:\/\/nshipster.com\/nscharacterset\/\"><p>And now for the anti-patterns. Take a gander at <a href=\"http:\/\/stackoverflow.com\/questions\/758212\/how-can-i-strip-all-the-whitespaces-from-a-string-in-objective-c\">the answers to this question on StackOverflow<\/a>. [&#8230;] I don&rsquo;t mean to rag on any of the answerers personally&#8211;this is all to point out how many ways there are to approach these kinds of tasks, and how many of those ways are totally wrong.<\/p><\/blockquote>\n<p>The recommended solution creates so many temporary objects, though.<\/p>","protected":false},"excerpt":{"rendered":"<p>Mattt Thompson: And now for the anti-patterns. Take a gander at the answers to this question on StackOverflow. [&#8230;] I don&rsquo;t mean to rag on any of the answerers personally&#8211;this is all to point out how many ways there are to approach these kinds of tasks, and how many of those ways are totally wrong. [&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,71],"class_list":["post-6027","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6027","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=6027"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6027\/revisions"}],"predecessor-version":[{"id":6029,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6027\/revisions\/6029"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}