Skip to content

Instantly share code, notes, and snippets.

@naokits
Created June 1, 2009 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naokits/121250 to your computer and use it in GitHub Desktop.
Save naokits/121250 to your computer and use it in GitHub Desktop.
# require 'rubygems'
require 'hotcocoa'
include HotCocoa
require 'pp'
# framework 'Cocoa'
# framework 'CoreServices'
# hoge = DictionaryServices.new
# .DCSCopyTextDefinition(None, word, (0,len(word)))
application do
w = window :title => 'Hello hoge', :frame => [0, 0, 120, 120]
b = button :title => 'Clik me'
b.on_action { puts 'Hello World'}
w << b
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment