{"id":2474,"date":"2022-08-30T15:25:10","date_gmt":"2022-08-30T15:25:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/17\/tell-if-a-class-is-conforming-to-specific-protocol-method-at-runtime-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:25:10","modified_gmt":"2022-08-30T15:25:10","slug":"tell-if-a-class-is-conforming-to-specific-protocol-method-at-runtime-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/tell-if-a-class-is-conforming-to-specific-protocol-method-at-runtime-collection-of-common-programming-errors\/","title":{"rendered":"Tell if a class is conforming to specific protocol method at runtime?-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to tell if there is a way to determine if a class is conforming to a specific (optional) protocol method at runtime. Is there a way to check for this? Don&#8217;t want to send a call to a nonexistent delegate method implementation in the delegate class.<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-17 07:10:01. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to tell if there is a way to determine if a class is conforming to a specific (optional) protocol method at runtime. Is there a way to check for this? Don&#8217;t want to send a call to a nonexistent delegate method implementation in the delegate class. Originally posted 2014-01-17 07:10:01.<\/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-2474","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2474","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=2474"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2474\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}