{"id":15029,"date":"2016-07-01T13:54:25","date_gmt":"2016-07-01T17:54:25","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=15029"},"modified":"2016-07-01T13:54:25","modified_gmt":"2016-07-01T17:54:25","slug":"objective-c-class-properties","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/07\/01\/objective-c-class-properties\/","title":{"rendered":"Objective-C Class Properties"},"content":{"rendered":"<p><a href=\"http:\/\/blog.andrewmadsen.com\/post\/145919242155\/objective-c-class-properties\">Andrew Madsen<\/a>:<\/p>\n<blockquote cite=\"http:\/\/blog.andrewmadsen.com\/post\/145919242155\/objective-c-class-properties\">\n<p>Xcode 8 ships with a new versions of Clang and LLVM (800.0.2.24.1, and 8.0.0 as of the first beta). The new version of Clang adds support for class properties in Objective-C. The feature is not yet fully documented anywhere that I can find, so I did a little experimenting.<\/p>\n<p>[&#8230;]<\/p>\n<p>It is important to note that unlike regular instance properties, Objective-C class properties <strong>can not<\/strong> be synthesized using <code>@synthesize<\/code>, nor are they automatically synthesized by the compiler. You are responsible for implementing accessor methods for them yourself. (You can also use an <code>@dynamic<\/code> for them to tell the compiler that accessor methods will be provided at runtime.)<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Andrew Madsen: Xcode 8 ships with a new versions of Clang and LLVM (800.0.2.24.1, and 8.0.0 as of the first beta). The new version of Clang adds support for class properties in Objective-C. The feature is not yet fully documented anywhere that I can find, so I did a little experimenting. [&#8230;] It is important [&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":[31,1380,46,30,1381,54,71],"class_list":["post-15029","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-ios","tag-ios-10","tag-languagedesign","tag-mac","tag-macos-10-12","tag-objective-c","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15029","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=15029"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15029\/revisions"}],"predecessor-version":[{"id":15030,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15029\/revisions\/15030"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=15029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=15029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=15029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}