{"id":7601,"date":"2013-07-13T16:20:34","date_gmt":"2013-07-13T21:20:34","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=7601"},"modified":"2013-07-15T12:56:22","modified_gmt":"2013-07-15T17:56:22","slug":"url-path-retrieval-cheat-sheet","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/07\/13\/url-path-retrieval-cheat-sheet\/","title":{"rendered":"URL Path Retrieval Cheat Sheet"},"content":{"rendered":"<p><a href=\"http:\/\/www.mikeabdullah.net\/url-paths-cheatsheet.html\">Mike Abdullah<\/a>:<\/p><blockquote cite=\"http:\/\/www.mikeabdullah.net\/url-paths-cheatsheet.html\"><p>As Cocoa developers, there&rsquo;s quite a broad range of APIs available to us for pulling out the path component of a URL. I often forget the particular quirks of them, so here&rsquo;s a handy cheat sheet to bring all that together.<\/p><\/blockquote>\n<p>Without reading the documentation, you might have assumed that <code>CFURLCopyPath()<\/code> and <code>-[NSURL path]<\/code> were equivalent.<\/p>","protected":false},"excerpt":{"rendered":"<p>Mike Abdullah:As Cocoa developers, there&rsquo;s quite a broad range of APIs available to us for pulling out the path component of a URL. I often forget the particular quirks of them, so here&rsquo;s a handy cheat sheet to bring all that together. Without reading the documentation, you might have assumed that CFURLCopyPath() and -[NSURL path] [&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,490,71,489,96],"class_list":["post-7601","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-encoding","tag-programming","tag-url","tag-web"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7601","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=7601"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7601\/revisions"}],"predecessor-version":[{"id":7604,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7601\/revisions\/7604"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=7601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=7601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=7601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}