{"id":24704,"date":"2019-03-22T15:41:43","date_gmt":"2019-03-22T19:41:43","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=24704"},"modified":"2019-03-26T15:07:27","modified_gmt":"2019-03-26T19:07:27","slug":"late-responders","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/03\/22\/late-responders\/","title":{"rendered":"Late Responders"},"content":{"rendered":"<p><a href=\"https:\/\/pfandrade.me\/blog\/late-responders-sidestepping-the-responder-chain\/\">Paulo Andrade<\/a>:<\/p>\n<blockquote cite=\"https:\/\/pfandrade.me\/blog\/late-responders-sidestepping-the-responder-chain\/\">\n<p>To summarize what was said above, some features that rely on the responder chain should be available even when the relevant responder isn&rsquo;t on the the chain&rsquo;s path.<\/p>\n<p>With that in mind I propose a solution I&rsquo;m calling &ldquo;Late Responders&rdquo;. The way it works is that you setup a late responder registry further up the chain, such as the window. Then, the responders further down the chain can register a late responder with the registry and let it handle any features that should be always available.<\/p>\n<p>This way even if the responder itself isn&rsquo;t in the chain&rsquo;s path, its late responder surely will be.<\/p>\n<\/blockquote>\n\n<p>See also: <a href=\"http:\/\/inessential.com\/2015\/08\/04\/swift_diary_8_forwardinvocation\">Swift Diary #8: forwardInvocation<\/a>.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2009\/12\/09\/modernizing-the-responder-chain\/\">Modernizing the Responder Chain<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2008\/04\/17\/hierarchy-of-nsviewcontrollers\/\">Hierarchy of NSViewControllers<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Paulo Andrade: To summarize what was said above, some features that rely on the responder chain should be available even when the relevant responder isn&rsquo;t on the the chain&rsquo;s path. With that in mind I propose a solution I&rsquo;m calling &ldquo;Late Responders&rdquo;. The way it works is that you setup a late responder registry further [&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":"2019-03-22T19:41:47Z","apple_news_api_id":"987659bc-430f-4878-9ecf-0574773c5715","apple_news_api_modified_at":"2019-03-26T19:07:32Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AmHZZvEMPSHiezwV0dzxXFQ","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":[69,31,1610,30,1609,71],"class_list":["post-24704","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-ios","tag-ios-12","tag-mac","tag-macos-10-14","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24704","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=24704"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24704\/revisions"}],"predecessor-version":[{"id":24729,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24704\/revisions\/24729"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=24704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=24704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=24704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}