{"id":4201,"date":"2014-03-30T09:14:55","date_gmt":"2014-03-30T09:14:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/what-exactly-is-super-in-objective-c-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:14:55","modified_gmt":"2014-03-30T09:14:55","slug":"what-exactly-is-super-in-objective-c-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/what-exactly-is-super-in-objective-c-collection-of-common-programming-errors\/","title":{"rendered":"What exactly is super in Objective-C?-Collection of common programming errors"},"content":{"rendered":"<p><strong><code>super<\/code><\/strong><\/p>\n<p>Essentially, it allows you to use the implementations of the current class&#8217; superclass.<\/p>\n<p>For the gritty details of the Objective-C runtime:<\/p>\n<p><code>[super message]<\/code> has the following meaning:<\/p>\n<blockquote>\n<p>When it encounters a method call, the compiler generates a call to one of the functions objc_msgSend, objc_msgSend_stret, objc_msgSendSuper, or objc_msgSendSuper_stret. Messages sent to an object&#8217;s superclass (using the super keyword) are sent using objc_msgSendSuper; other messages are sent using objc_msgSend. Methods that have data structures as return values are sent using objc_msgSendSuper_stret and objc_msgSend_stret.<\/p>\n<\/blockquote>\n<p>So yes, it is static, and <strong>not<\/strong> determined at runtime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>super Essentially, it allows you to use the implementations of the current class&#8217; superclass. For the gritty details of the Objective-C runtime: [super message] has the following meaning: When it encounters a method call, the compiler generates a call to one of the functions objc_msgSend, objc_msgSend_stret, objc_msgSendSuper, or objc_msgSendSuper_stret. Messages sent to an object&#8217;s superclass [&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-4201","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4201","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=4201"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4201\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}