[MacRuby-devel] Neat MacRuby app, HotCocoa, and more!
Leigh Caplan
texel1 at gmail.com
Sat Nov 13 19:08:29 PST 2010
Hey everybody,
I wanted to say hi to the list and introduce myself - I've been lurking for
awhile and come by when I need help, but RubyConf has me all fired up, so
I'd like to start engaging more with the community. My name is Leigh Caplan,
and I'm a developer in Seattle, WA. I like long walks on the beach, dinner
by candlelight, and not having to write my Mac OS X apps in Objective C.
First, I wanted to tell everyone about a potentially useful menu extra that
I created called CobraMenu. It's meant to be a simple "traffic light" for CI
Joe (the super simple/awesome CI server written by the Github guys). You can
find more info at http://texel.github.com/CobraMenu/ or just clone/fork it
from https://github.com/texel/CobraMenu
Next, developing this got me thinking about HotCocoa, and how it could
evolve into a really useful project in the future. I had a chat w/ Matt
Aimonetti today, and he mentioned that Rich Kilmer, while still interested
in the project, both didn't have time to maintain it and also wasn't
convinced that its current goal as a DSL for creating UI elements was
necessarily useful for anything but trivial projects. Apparently there's
also been some discussion to this effect on this list, but I'm a bit late to
the party, so I apologize.
Now, I *can* see a need for a ruby-like DSL for Cocoa, but in my opinion, it
would be much more exciting if we endeavored to wrap other Cocoa classes and
idioms in a loving Ruby-like embrace. Here's a rudimentary example (very
much like something I've done in CobraMenu):
HotCocoa::URLConnection.get('http://google.com') do |c|
c.success { success_callback }
c.failure { failure_callback }
c.error { |e| error_handler.call_something e }
end
I'd be interested to see if other people think this is a good idea. If so, I
can formulate a strategy, and get to work :)
Leigh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20101113/152f5561/attachment.html>
More information about the MacRuby-devel
mailing list