<div dir="ltr"><div>(Sorry if this mail shows up multiple times, the mailing list suddenly has some issues with my gmail accounts, so this is yet another repost attempt)</div><div><br></div><div>Cool, another dead horse to kick.</div>

<div>It works for starters.</div><div><br></div><div>cocoa is a more direct approach where methods are equivalent to the apple docs - as they are bindings, not some wrapped up stubs.</div><div>I would probably guess there is a lot of stuff not even accessible through rubyobjc - if you even get that 6 year old thing up and running.</div>

<div><br></div><div>cocoa exploits modern ruby to use keyword arguments and everything that makes ruby quite equivalent to what you would do in objective-c.</div><div><br></div><div>cocoa is a modern integration, and here is a example usage that will probably massage your marble for a moment.</div>

<div>Here you see multiple tasks of NSTableViewDelegate. Notice how cocoa exploit keyword arguments to allow you to define the same method twice, with different keyword arguments equivalent to the two tasks selectors.</div>

<div><br></div><div><pre style="font-size:12px;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px"><div class="" id="LC60" style="padding-left:10px;height:18px">

    <span class="" style="font-weight:bold">def</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">tableView</span><span class="">(</span><span class="">table_view</span><span class="">,</span> <span class="" style="color:rgb(153,0,115)">objectValueForTableColumn</span><span class="">:</span> <span class="" style="font-weight:bold">nil</span><span class="">,</span> <span class="" style="color:rgb(153,0,115)">row</span><span class="">:</span> <span class="" style="font-weight:bold">nil</span><span class="">)</span></div>

<div class="" id="LC61" style="padding-left:10px;height:18px">      <span class="">cache</span><span class="" style="font-weight:bold">[</span><span class="">row</span><span class="" style="font-weight:bold">].</span><span class="">send</span><span class="">(</span><span class="">objectValueForTableColumn</span><span class="" style="font-weight:bold">.</span><span class="">identifier</span><span class="" style="font-weight:bold">.</span><span class="">to_s</span><span class="" style="font-weight:bold">.</span><span class="">to_sym</span><span class="">)</span><span class="" style="font-weight:bold">.</span><span class="">to_s</span></div>

<div class="" id="LC62" style="padding-left:10px;height:18px">    <span class="" style="font-weight:bold">end</span></div><div class="" id="LC63" style="padding-left:10px;height:18px"><br></div><div class="" id="LC64" style="padding-left:10px;height:18px">

    <span class="" style="font-weight:bold">def</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">tableView</span><span class="">(</span><span class="">table_view</span><span class="">,</span> <span class="" style="color:rgb(153,0,115)">shouldSelectRow</span><span class="">:</span> <span class="" style="font-weight:bold">nil</span><span class="">)</span></div>

<div class="" id="LC65" style="padding-left:10px;height:18px">      <span class="">hooks</span><span class="" style="font-weight:bold">[</span><span class="" style="color:rgb(153,0,115)">:on_select_row</span><span class="" style="font-weight:bold">].</span><span class="">call</span><span class="">(</span><span class="">shouldSelectRow</span><span class="">)</span> <span class="" style="font-weight:bold">if</span> <span class="">hooks</span><span class="" style="font-weight:bold">[</span><span class="" style="color:rgb(153,0,115)">:on_select_row</span><span class="" style="font-weight:bold">]</span></div>

<div class="" id="LC66" style="padding-left:10px;height:18px">      <span class="" style="font-weight:bold">true</span></div><div class="" id="LC67" style="padding-left:10px;height:18px">    <span class="" style="font-weight:bold">end</span></div>

<div><span class="" style="font-weight:bold"><br></span></div></pre></div><div>Patrick</div></div><div class="gmail_extra"><br clear="all"><div>Mvh.<br>Patrick Hanevold<br><br></div>
<br><br><div class="gmail_quote">On Tue, Apr 29, 2014 at 2:48 AM, Kevin Walzer <span dir="ltr">&lt;<a href="mailto:kw@codebykevin.com" target="_blank">kw@codebykevin.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">On 4/28/14, 7:21 PM, Patrick Hanevold wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There is only the github at the moment<br>
(<a href="https://github.com/patrickhno/cocoa" target="_blank">https://github.com/<u></u>patrickhno/cocoa</a>).<br>
If you guys have a suggestion for a particular flavor of mailing list,<br>
sure - I can set one up and participate.<br>
<br>
Patrick<br>
<br>
</blockquote>
<br></div>
How does this gem compare to rubyobjc:<br>
<br>
<a href="https://github.com/timburks/rubyobjc" target="_blank">https://github.com/timburks/<u></u>rubyobjc</a><br>
<br>
?<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-- <br>
Kevin Walzer<br>
Code by Kevin/Mobile Code by Kevin<br>
<a href="http://www.codebykevin.com" target="_blank">http://www.codebykevin.com</a><br>
<a href="http://www.wtmobilesoftware.com" target="_blank">http://www.wtmobilesoftware.<u></u>com</a></font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
MacRuby-devel mailing list<br>
<a href="mailto:MacRuby-devel@lists.macosforge.org" target="_blank">MacRuby-devel@lists.<u></u>macosforge.org</a><br>
<a href="https://lists.macosforge.org/mailman/listinfo/macruby-devel" target="_blank">https://lists.macosforge.org/<u></u>mailman/listinfo/macruby-devel</a><br>
</div></div></blockquote></div><br></div>