{"id":4342,"date":"2014-03-30T09:56:12","date_gmt":"2014-03-30T09:56:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-get-a-compiler-warning-when-an-iboutlet-is-disconnected-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:56:12","modified_gmt":"2014-03-30T09:56:12","slug":"how-to-get-a-compiler-warning-when-an-iboutlet-is-disconnected-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-get-a-compiler-warning-when-an-iboutlet-is-disconnected-collection-of-common-programming-errors\/","title":{"rendered":"How to get a compiler warning when an IBOutlet is disconnected-Collection of common programming errors"},"content":{"rendered":"<p>How can I have Xcode warn me if an IBOutlet of one of my objects is not hooked up to anything in a NIB?<\/p>\n<p>I can check that outlets are connected at runtime by adding <code>assert(ofEveryOutlet);<\/code> in <code>awakeFromNib<\/code> or <code>viewDidLoad<\/code>. But it&#8217;s not as useful, or reliable, as having the compiler do the checking for me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How can I have Xcode warn me if an IBOutlet of one of my objects is not hooked up to anything in a NIB? I can check that outlets are connected at runtime by adding assert(ofEveryOutlet); in awakeFromNib or viewDidLoad. But it&#8217;s not as useful, or reliable, as having the compiler do the checking for [&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-4342","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4342","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=4342"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4342\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}