OK, lets do a poll then, the target audience is right here I would guess.

What's your preferred flavour of mailing list / group manager for the cocoa gem?

Patrick

On 29 Apr 2014, at 15:57, Perry E. Metzger <perry@piermont.com> wrote:

On Tue, 29 Apr 2014 15:48:38 +0200 Patrick Hanevold
<patrick.hanevold@gmail.com> wrote:

There is only github for now:
https://github.com/patrickhno/cocoa

You should fix that. It would make it easier to have a community
develop, and google groups are trivial to start...

Perry


Pro tip: Quite easy to look up the repository origin of gems on
rubygems.org

Patrick

On 29 Apr 2014, at 15:42, Perry E. Metzger <perry@piermont.com>
wrote:

You mention no mailing list or web site...

Perry

On Tue, 29 Apr 2014 10:07:50 +0200 Patrick Hanevold
<patrick.hanevold@gmail.com> wrote:
(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)

Cool, another dead horse to kick.
It works for starters.

cocoa is a more direct approach where methods are equivalent to
the apple docs - as they are bindings, not some wrapped up stubs.
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.

cocoa exploits modern ruby to use keyword arguments and
everything that makes ruby quite equivalent to what you would do
in objective-c.

cocoa is a modern integration, and here is a example usage that
will probably massage your marble for a moment.
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.


  def tableView(table_view, objectValueForTableColumn: nil, row:
nil)
cache[row].send(objectValueForTableColumn.identifier.to_s.to_sym).to_s
end


  def tableView(table_view, shouldSelectRow: nil)
    hooks[:on_select_row].call(shouldSelectRow) if
hooks[:on_select_row] true
  end

Patrick

Mvh.
Patrick Hanevold



On Tue, Apr 29, 2014 at 2:48 AM, Kevin Walzer
<kw@codebykevin.com> wrote:

On 4/28/14, 7:21 PM, Patrick Hanevold wrote:

There is only the github at the moment
(https://github.com/patrickhno/cocoa).
If you guys have a suggestion for a particular flavor of
mailing list, sure - I can set one up and participate.

Patrick


How does this gem compare to rubyobjc:

https://github.com/timburks/rubyobjc

?


--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macruby-devel




-- 
Perry E. Metzger perry@piermont.com




-- 
Perry E. Metzger perry@piermont.com