<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">John,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">btw. this snippet demonstrates how I use my shared_ptr mechanism to great utility...</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><a href="https://gist.github.com/bayoubengal/21757b0ddca12e594b4b0f93c65520a7" class="">https://gist.github.com/bayoubengal/21757b0ddca12e594b4b0f93c65520a7</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><span style="color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; white-space: pre; background-color: rgb(255, 255, 255);" class="">make_lambda_binding_sptr wraps KVO to create a KVO binding that is isn't fragile as they they are in pure objc. if the lambda gets called after the window controller has been dealloc'ed, the code just exists.</span></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">my purpose is to demonstrate that the mechanism isn't cumbersome for the developer to use. it is a little more verbose, but the benefits are worth the extra typing. </div></body></html>