{"id":4113,"date":"2014-03-30T07:57:51","date_gmt":"2014-03-30T07:57:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/recent-changes-in-objective-c-runtime-xcode-4-2-code-collection-of-common-programming-errors\/"},"modified":"2014-03-30T07:57:51","modified_gmt":"2014-03-30T07:57:51","slug":"recent-changes-in-objective-c-runtime-xcode-4-2-code-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/recent-changes-in-objective-c-runtime-xcode-4-2-code-collection-of-common-programming-errors\/","title":{"rendered":"Recent Changes in Objective-C runtime\/ Xcode 4.2 code-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve just started learning Obj-C and i&#8217;m a little confused. The videos I&#8217;ve been watching on Lynda.com were created with Xcode 4, but there are so many differences that I find it hard to believe that all of them occurred in 2 point releases. For instance:<\/p>\n<p>In the video you could write:<\/p>\n<pre><code>@property NSString * myString\n<\/code><\/pre>\n<p>And it would be fine, but now in 4.2 it throws an error unless you write something like:<\/p>\n<pre><code>@property (nonatomic, retain) NSString * myString\n<\/code><\/pre>\n<p>In addition, there are no longer init or dealloc methods in the implementation code by default and NSAutoReleasePool is implemented completely differently. What gives?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve just started learning Obj-C and i&#8217;m a little confused. The videos I&#8217;ve been watching on Lynda.com were created with Xcode 4, but there are so many differences that I find it hard to believe that all of them occurred in 2 point releases. For instance: In the video you could write: @property NSString * [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4113","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4113"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4113\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}