Created
February 2, 2010 05:34
-
-
Save kickserv/292411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby test.rb | |
2010-02-01 21:33:06.933 macruby[47987:60f] *** -[NSLock unlock]: lock (<NSLock: 0x22ce580> '(null)') unlocked when not locked | |
2010-02-01 21:33:06.937 macruby[47987:60f] *** Break on _NSLockError() to debug. | |
2010-02-01 21:33:06.964 macruby[47987:60f] *** Assertion failure in -[LayoutView initWithFrame:], /SourceCache/AppKit/AppKit-1038.25/AppKit.subproj/NSView.m:1289 | |
/Users/zackchandler/.rvm/gems/macruby-nightly/gems/hotcocoa-0.5.1/lib/hotcocoa/layout_view.rb:227:in `initWithFrame:': NSInternalInconsistencyException: Frame containing non-finite values {{0, 0}, {nan, nan}} passed to [LayoutView initWithFrame:] (RuntimeError) | |
from /Users/zackchandler/.rvm/gems/macruby-nightly/gems/hotcocoa-0.5.1/lib/hotcocoa/mappings/window.rb:37:in `init_with_options:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment