<div dir="ltr">That works great and is very elegant. Nice work.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 4, 2017 at 6:34 AM, Geordie J <span dir="ltr"><<a href="mailto:geojay@gmail.com" target="_blank">geojay@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">In fact, this would be even better (avoids unnecessary implicitly unwrapped optionals):<div><br></div><div><div style="margin:0px;line-height:normal"><div style="margin:0px;line-height:normal"><div style="font-family:Menlo;font-size:11px;margin:0px;line-height:normal"><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">class</span><span style="font-variant-ligatures:no-common-ligatures"> ClosureGestureRecognizer<<wbr>GestureRecognizer: </span><span style="font-variant-ligatures:no-common-ligatures;color:#703daa">UIGestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures">> {</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">fileprivate</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">var</span><span style="font-variant-ligatures:no-common-ligatures"> recognizer: </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">GestureRecognizer</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">private</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">var</span><span style="font-variant-ligatures:no-common-ligatures"> onAction: ((</span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">GestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures">) -> </span><span style="font-variant-ligatures:no-common-ligatures;color:#703daa">Void</span><span style="font-variant-ligatures:no-common-ligatures">)</span></div><div style="margin:0px;line-height:normal;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">init</span><span style="font-variant-ligatures:no-common-ligatures">(onAction: </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">@escaping</span><span style="font-variant-ligatures:no-common-ligatures"> ((</span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">GestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures">) -> </span><span style="font-variant-ligatures:no-common-ligatures;color:#703daa">Void</span><span style="font-variant-ligatures:no-common-ligatures">)) {</span></div><div style="margin:0px;line-height:normal;color:rgb(79,129,135)"><span style="font-variant-ligatures:no-common-ligatures;color:#000000"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">self</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000">.</span><span style="font-variant-ligatures:no-common-ligatures">recognizer</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000"> = </span><span style="font-variant-ligatures:no-common-ligatures">GestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000">()</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">self</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">onAction</span><span style="font-variant-ligatures:no-common-ligatures"> = onAction</span></div><div style="margin:0px;line-height:normal;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">self</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">recognizer</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:#3e1e81">addTarget</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">self</span><span style="font-variant-ligatures:no-common-ligatures"><wbr>, action: </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">#selector</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:#31595d">actionHandler</span><span style="font-variant-ligatures:no-common-ligatures">))</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;line-height:normal;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">@objc</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">private</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">func</span><span style="font-variant-ligatures:no-common-ligatures"> actionHandler() {</span></div><div style="margin:0px;line-height:normal;color:rgb(79,129,135)"><span style="font-variant-ligatures:no-common-ligatures;color:#000000"> </span><span style="font-variant-ligatures:no-common-ligatures">onAction</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000">(</span><span style="font-variant-ligatures:no-common-ligatures">recognizer</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000">)</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">}</span></div><div style="margin:0px;line-height:normal;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;line-height:normal;color:rgb(186,45,162)"><span style="font-variant-ligatures:no-common-ligatures">extension</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#703daa">UIView</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000"> {</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">func</span><span style="font-variant-ligatures:no-common-ligatures"> addGestureRecognizer<T>(</span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">_</span><span style="font-variant-ligatures:no-common-ligatures"> gestureRecognizer: </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">ClosureGestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures"><</span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">T</span><span style="font-variant-ligatures:no-common-ligatures">>) {</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">self</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:#3e1e81">addGestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures">(<wbr>gestureRecognizer.</span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">recognizer</span><span style="font-variant-ligatures:no-common-ligatures">)</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">}</span></div></div><div style="font-family:Menlo;font-size:11px;margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">Depending on your use-case, it’d be no problem to make <i style="font-family:Helvetica;font-size:12px">onAction</i> a non-private (externally settable) optional closure—in case you want to avoid having to set it on init of ClosureGestureRecognizer.</span></div><div style="font-family:Menlo;font-size:11px;margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></div></div></div><div>Cheers,</div><div>Geordie</div><div><br></div><div><br><div><blockquote type="cite"><div>Am 04.06.2017 um 23:09 schrieb Geordie J <<a href="mailto:geojay@gmail.com" target="_blank">geojay@gmail.com</a>>:</div><br class="m_7373483403143331515Apple-interchange-newline"><div><div style="word-wrap:break-word"><div><div style="margin:0px;line-height:normal"><div style="margin:0px;line-height:normal">To get around the issue of using self on init, but also that of multiple recogniser types, try this:</div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2"><br></span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">class</span><span style="font-variant-ligatures:no-common-ligatures"> ClosureGestureRecognizer<<wbr>RecognizerType: </span><span style="font-variant-ligatures:no-common-ligatures;color:#703daa">UIGestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures">> {</span></div><div style="color:rgb(0,132,0);font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures">// These are initially nil and set on init to their desired values.</span></div><div style="color:rgb(0,132,0);font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> // This gets around the issue of using self in init.</span></div><div style="color:rgb(0,132,0);font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> // `private` means they can't ever actually be nil:</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">private</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">var</span><span style="font-variant-ligatures:no-common-ligatures"> recognizer: </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">RecognizerType</span><span style="font-variant-ligatures:no-common-ligatures">!</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">private</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">var</span><span style="font-variant-ligatures:no-common-ligatures"> onAction: ((</span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">RecognizerType</span><span style="font-variant-ligatures:no-common-ligatures">) -> </span><span style="font-variant-ligatures:no-common-ligatures;color:#703daa">Void</span><span style="font-variant-ligatures:no-common-ligatures">)!</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">init</span><span style="font-variant-ligatures:no-common-ligatures">(callback: </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">@escaping</span><span style="font-variant-ligatures:no-common-ligatures"> ((</span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">RecognizerType</span><span style="font-variant-ligatures:no-common-ligatures">) -> </span><span style="font-variant-ligatures:no-common-ligatures;color:#703daa">Void</span><span style="font-variant-ligatures:no-common-ligatures">)) {</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">recognizer</span><span style="font-variant-ligatures:no-common-ligatures"> = </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">RecognizerType</span><span style="font-variant-ligatures:no-common-ligatures">(target: </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">self</span><span style="font-variant-ligatures:no-common-ligatures">, action: </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">#selector</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:#31595d">actionHandler</span><span style="font-variant-ligatures:no-common-ligatures">))</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">self</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">onAction</span><span style="font-variant-ligatures:no-common-ligatures"> = callback</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">@objc</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">private</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">func</span><span style="font-variant-ligatures:no-common-ligatures"> actionHandler() {</span></div><div style="color:rgb(79,129,135);font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures">onAction</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures">recognizer</span><span style="font-variant-ligatures:no-common-ligatures">)</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">}</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">let</span><span style="font-variant-ligatures:no-common-ligatures"> recognizer = </span><span style="font-variant-ligatures:no-common-ligatures;color:#4f8187">ClosureGestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures"><</span><span style="font-variant-ligatures:no-common-ligatures;color:#703daa">UIPan<wbr>GestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures">>(callback: { panGestureRecognizer </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">in</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#3e1e81">print</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:#d12f1b">"Panned, translation:"</span><span style="font-variant-ligatures:no-common-ligatures">, panGestureRecognizer.</span><span style="font-variant-ligatures:no-common-ligatures;color:#3e1e81">translati<wbr>on</span><span style="font-variant-ligatures:no-common-ligatures">(in: </span><span style="font-variant-ligatures:no-common-ligatures;color:#ba2da2">nil</span><span style="font-variant-ligatures:no-common-ligatures">))</span></div><div style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">})</span></div><div style="color:rgb(255,255,255);font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></div></div><div>Regards,</div><div>Geordie</div><br><div><br><div><blockquote type="cite"><div>Am 04.06.2017 um 21:55 schrieb Zhao Xin <<a href="mailto:owenzx@gmail.com" target="_blank">owenzx@gmail.com</a>>:</div><br class="m_7373483403143331515Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Will this work?</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">class</span><span style="font-variant-ligatures:no-common-ligatures"> TapGestureRecognizer: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">UITapGestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures"> {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">var</span><span style="font-variant-ligatures:no-common-ligatures"> onTap: (() -> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">Void</span><span style="font-variant-ligatures:no-common-ligatures">)?</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">init</span><span style="font-variant-ligatures:no-common-ligatures">(onTap: (() -> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">Void</span><span style="font-variant-ligatures:no-common-ligatures">)?) {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">onTap</span><span style="font-variant-ligatures:no-common-ligatures"> = onTap</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">super</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">init</span><span style="font-variant-ligatures:no-common-ligatures">(target: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">nil</span><span style="font-variant-ligatures:no-common-ligatures">, action: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">nil</span><span style="font-variant-ligatures:no-common-ligatures">)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b><i><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">removeTarget</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">nil</span><span style="font-variant-ligatures:no-common-ligatures">, action: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">nil</span><span style="font-variant-ligatures:no-common-ligatures">)</span></i></b></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">addTarget</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">, action: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">#selector</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">internalTapHandler</span><span style="font-variant-ligatures:no-common-ligatures">))</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">print</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span><br class="m_7373483403143331515webkit-block-placeholder"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">@objc</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">private</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">func</span><span style="font-variant-ligatures:no-common-ligatures"> internalTapHandler() {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">onTap</span><span style="font-variant-ligatures:no-common-ligatures">?()</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">}</span></div></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhao Xin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 4, 2017 at 5:24 PM, Nate Birkholz <span dir="ltr"><<a href="mailto:nbirkholz@gmail.com" target="_blank">nbirkholz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Also, note that I tried the following:<div><br><div><div>class BlockTapGestureRecognizer: UIGestureRecognizer {</div><span><div> var onTap: (() -> Void)?</div><div> init(onTap: (() -> Void)?) {</div><div> self.onTap = onTap</div></span><div> super.init(target: nil, action: nil)</div><div> self.addTarget(self, action: #selector(internalTapHandler))</div><div> print(self)</div><span><div> }</div><div><br></div><div> @objc private func internalTapHandler() {</div><div> onTap?()</div><div> }</div><div>}</div></span></div><div><br></div><div>And the object prints looking okay:</div><div><br><div><div><Artmospherez.BlockTapGestureR<wbr>ecognizer: 0x1701998b0; baseClass = UIGestureRecognizer; state = Possible; view = <UIView 0x100c60870>; target= <(action=internalTapHandler, target=<Artmospherez.BlockTapG<wbr>estureRecognizer 0x1701998b0>)>><br></div><div><br></div><div>But it doesn't in practice work. The documentation for the (target: action:) initializer states:</div></div><div><div><br></div><div>target: An object that is the recipient of action messages sent by the receiver when it recognizes a gesture. nil is not a valid value.</div><div>action: A selector that identifies the method implemented by the target to handle the gesture recognized by the receiver. The action selector must conform to the signature described in the class overview. NULL is not a valid value.</div></div><div><br></div><div>So something is going on inside there when the nil values are passed to the recognizer. As the documentation states, nil is not a valid value and it must cause troubles.</div><div><br></div><div>Or I did something wrong?</div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><div><div class="m_7373483403143331515h5"><br><div class="gmail_quote">On Sun, Jun 4, 2017 at 1:55 AM, Nate Birkholz <span dir="ltr"><<a href="mailto:nbirkholz@gmail.com" target="_blank">nbirkholz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ah, I didn't read the rest of the thread. As Zhao Xin notes, you cannot call super.init(target: self, action: #selector()), and you cannot call super.init() in a subclass init or convenience init, it *has* to be the designated init method init(target:action:). That's too bad, closure-based gesture recognizers would be snazzy and swifty and I'd love to see them as part of UIKit. <div><br></div><div>I could write my own custom implementations of subclassed UIKit.UIGestureRecognizerSubcl<wbr>ass(es), but as the screens in question have tap, swipe up, swipe down, and swipe right gesture recognizers, I feel its overkill to write all that to avoid repeating ~10 lines of code.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 4, 2017 at 1:21 AM, Nate Birkholz <span dir="ltr"><<a href="mailto:nbirkholz@gmail.com" target="_blank">nbirkholz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I briefly considered something like this but didn't explore it. Elegant.<br><br>Sent from my iPhone, please excuse brevity and errors</div><div><br>On Jun 3, 2017, at 9:38 PM, Geordie Jay <<a href="mailto:geojay@gmail.com" target="_blank">geojay@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>I am dealing with a variant of this on Android right now. I have just subclassed e.g. UITapGestureRecognizer to perform the 2nd variant above and externally accept a closure as its argument. I'm writing this on my phone so forgive any syntax errors or accidental omissions:<br><br>class TapGestureRecognizer: UITapGestureRecognizer {<br> var onTap: (() -> Void)?<br> init(onTap: (() -> Void)?) {<br> self.onTap = onTap<br> super.init(target: self, action: #selector(internalTapHandler))<br> }<br><br> @objc private func internalTapHandler() {<br> onTap?()<br> }<br>}<br><br>class Baz: Foo {<br> init() {<br> let tapRecognizer = TapGestureRecognizer(onTap: self.bar)<br> }<br>}<br><br><br>Cheers,<br>Geordie<br><div class="gmail_quote"><div dir="ltr">On Sat 3. Jun 2017 at 16:53, Nate Birkholz via swift-users <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, the second had occurred to me, but felt a little too much like in practice it would make the code harder to understand.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 2, 2017 at 9:58 PM, Zhao Xin <span dir="ltr"><<a href="mailto:owenzx@gmail.com" target="_blank">owenzx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">I found two workarounds.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">1.</div><div class="gmail_default" style="font-family:georgia,serif"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(186,45,162)"><span style="font-variant-ligatures:no-common-ligatures">protocol</span><span style="font-variant-ligatures:no-common-ligatures"> Foo: </span><span style="font-variant-ligatures:no-common-ligatures">class</span><span style="font-variant-ligatures:no-common-ligatures"> {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">func</span><span style="font-variant-ligatures:no-common-ligatures"> bar()</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">}</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">class</span><span style="font-variant-ligatures:no-common-ligatures"> Base:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">Foo</span><span style="font-variant-ligatures:no-common-ligatures"> {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">@objc</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">func</span><span style="font-variant-ligatures:no-common-ligatures"> bar() {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">print</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"bar"</span><span style="font-variant-ligatures:no-common-ligatures">)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">}</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">class</span><span style="font-variant-ligatures:no-common-ligatures"> Baz: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">Base</span><span style="font-variant-ligatures:no-common-ligatures"> {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(186,45,162)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures">override</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures">init</span><span style="font-variant-ligatures:no-common-ligatures">() {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">super</span><span style="font-variant-ligatures:no-common-ligatures">.</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">init</span><span style="font-variant-ligatures:no-common-ligatures">()</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">let</span><span style="font-variant-ligatures:no-common-ligatures"> tapRecognizer = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">UITapGestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures">(target: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">, action: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">#selector</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">bar</span><span style="font-variant-ligatures:no-common-ligatures">))</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">}</span></div></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">2.</div><div class="gmail_default" style="font-family:georgia,serif"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(186,45,162)"><span style="font-variant-ligatures:no-common-ligatures">protocol</span><span style="font-variant-ligatures:no-common-ligatures"> Foo: </span><span style="font-variant-ligatures:no-common-ligatures">class</span><span style="font-variant-ligatures:no-common-ligatures"> {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">func</span><span style="font-variant-ligatures:no-common-ligatures"> bar()</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">}</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(186,45,162)"><span style="font-variant-ligatures:no-common-ligatures">extension</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">Foo</span><span style="font-variant-ligatures:no-common-ligatures"> {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">func</span><span style="font-variant-ligatures:no-common-ligatures"> bar() {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">print</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"bar"</span><span style="font-variant-ligatures:no-common-ligatures">)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">}</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">class</span><span style="font-variant-ligatures:no-common-ligatures"> Baz: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">Foo</span><span style="font-variant-ligatures:no-common-ligatures"> {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">init</span><span style="font-variant-ligatures:no-common-ligatures">() {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">let</span><span style="font-variant-ligatures:no-common-ligatures"> tapRecognizer = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">UITapGestureRecognizer</span><span style="font-variant-ligatures:no-common-ligatures">(target: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">, action: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">#selector</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">delegate</span><span style="font-variant-ligatures:no-common-ligatures">))</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span><br class="m_7373483403143331515webkit-block-placeholder"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">@objc</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">func</span><span style="font-variant-ligatures:no-common-ligatures"> delegate() {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">bar</span><span style="font-variant-ligatures:no-common-ligatures">()</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">}</span></div></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhao Xin</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 3, 2017 at 10:35 AM, Nate Birkholz via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">protocol Foo: class {<div> func bar()<br><div><div>}</div><div><br></div><div>extension Foo {</div><div> func bar() {</div><div> print("bar")</div><div> }</div><div>}</div><div><br></div><div>class Baz: Foo {</div></div></div><div> init() {</div><div> let tapRecognizer = UITapGestureRecognizer(target: self, action: #selector(bar))</div><div> }</div><div><div>}</div><div><br></div><div>the #selector tells me: "Argument of '#selector' refers to instance method 'bar()' that is not exposed to Objective-C" and asks me to add @objc to the method definition. </div><div><br></div><div>Adding @objc to the method tells me: "@objc can only be used with members of classes, @objc protocols, and concrete extensions of classes"</div><div><br></div><div>Adding @objc to the protocol doesn't fix it, just introduces new issues.</div><div><br></div><div>"dynamic" cannot be applied to a protocol, so cannot be used alternatively. </div><div><br></div><div>Is there a way to get around this? If a method is called by a gesture recognizer, is there no way to have a default protocol implementation? I'd like to use default implementations if possible to make my code more DRY.</div><div><br></div><div>Is there a roadmap/plan for swift-native selector dispatch?</div><div><br></div><div>Thanks. I look forward to the inevitable reply revealing the dumb thing I missed. :)</div><span class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367HOEnZb"><font color="#888888"><span class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367m_-4063239687484628030m_5017937476429152288HOEnZb"><font color="#888888"><span class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367m_-4063239687484628030m_5017937476429152288m_7008235823108254220HOEnZb"><font color="#888888"><div><div><br></div>-- <br><div class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367m_-4063239687484628030m_5017937476429152288m_7008235823108254220m_8246596659823059447gmail_signature">Nate Birkholz</div>
</div></font></span></font></span></font></span></div></div><span class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367HOEnZb"><font color="#888888"><span class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367m_-4063239687484628030m_5017937476429152288HOEnZb"><font color="#888888">
<br>______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-users</a><br>
<br></font></span></font></span></blockquote></div><span class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367HOEnZb"><font color="#888888"><br></font></span></div><span class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367HOEnZb"><font color="#888888"><br><br clear="all"><span class="m_7373483403143331515m_6716881662020614998HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367m_-4063239687484628030m_5017937476429152288gmail_signature" data-smartmail="gmail_signature">Nate Birkholz</div>
</font></span></font></span></div><span class="m_7373483403143331515m_6716881662020614998HOEnZb"><font color="#888888"><span class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367HOEnZb"><font color="#888888">
______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-users</a><br>
</font></span></font></span></blockquote></div><span class="m_7373483403143331515m_6716881662020614998HOEnZb"><font color="#888888">
</font></span></div></blockquote></div></blockquote></div><span class="m_7373483403143331515m_6716881662020614998HOEnZb"><font color="#888888"><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_7373483403143331515m_6716881662020614998m_-2127668203321951367gmail_signature" data-smartmail="gmail_signature">Nate Birkholz</div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div></font></span></div></div><span class="HOEnZb"><font color="#888888"><span class="m_7373483403143331515HOEnZb"><font color="#888888">-- <br><div class="m_7373483403143331515m_6716881662020614998gmail_signature" data-smartmail="gmail_signature">Nate Birkholz</div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div></div></div></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Nate Birkholz</div>
</div>