Displaying articles with tag osx

June Meeting: Rich Kilmer & HotCocoa

Posted by melriffe, Wed Jun 03 22:45:00 UTC 2009

Meeting Details

Date: Tuesday, 9 June
Time: 6:00 – 8:00 PM
Place: Strategy Cafe
Details: Upcoming Event

We would greatly appreciate it if you could go to the Upcoming Event and indicate your intention to attend this meeting.

Meeting Abstract

HotCocoa is a thin Ruby layer that sits above Cocoa and other frameworks. It simplifies the verbose OS X API so that you can programmatically construct user interfaces without Interface Builder.

MacRuby and HotCocoa

MacRuby is an implementation of the Ruby language that runs on the Objective-C runtime under OS X. MacRuby is based on Ruby 1.9 but contains substantial modifications including the merging of object models (every Object is an NSObject), using the Objective-C 2.0 generational garbage collector, moving core types (String, Fixnum, Array, Hash) atop their Objective-C counterparts and replacement of standard libraries to more optimally integrate with OS X. MacRuby also includes a new library, HotCocoa. HotCocoa is a thin, idiomatic Ruby layer that sits above Cocoa and other frameworks.

Cocoa classes have extremely verbose method and constant names. A substantial amount of code is written to just instantiate and configure instances of these classes. Interface Builder is used by most developers because it hides the complexity of manually configuring controls, but at the expense have having to use a GUI builder and the obscuring those configuration options inside the IB user interface. One of HotCocoa’s chief goals is to allow Interface Builder simplicity, but in Ruby code. Buttons, Sliders, Windows, WebViews—the whole works—HotCocoa simplifies this process by creating a mapping layer over the top of Objective-C classes. HotCocoa adds Ruby-friendly methods, constants and delegation techniques that look refreshingly simple, but do not prevent full use of the Cocoa APIs.

This talk with introduce MacRuby and HotCocoa and show demonstrations on how to use them to quickly build OS X desktop applications with Ruby.

Presenter Bio

Richard Kilmer is the founder of Virginia-based software and services company InfoEther, Inc and is a board member of Ruby Central. Rich’s background includes peer-to-peer software, wireless web, workflow, and pen computing. Rich has been using Ruby in production systems since 2002 and has contributed to many Ruby projects over the years including RubyGems and starting RubyForge. Rich’s current Ruby efforts are focused on simplifying OS X development with HotCocoa and is a contributor to the MacRuby project.

Side Note

This will also be the first co-meeting with the local CocoaHeads group. Should be an exciting time.

0 comments | Filed Under: Meetings | Tags: osx