HotCocoa!

Posted: February 4th, 2010 | Author: | Filed under: apple, ruby | No Comments »

The latest MacRuby with HotCocoa is amazing! Finally a way to write OS X applications without having to learn Objective-C.

require 'rubygems'
require 'hotcocoa'
include HotCocoa
application do |app|
  win = window :size => [100,50]
  b = button :title => 'Hello'
  b.on_action { puts 'World!' }
  win << b
end



Leave a Reply

  • Receive notifications via email of new comments on this post