Skip to content

Instantly share code, notes, and snippets.

@kickserv
Created February 2, 2010 05:34
Show Gist options
  • Save kickserv/292411 to your computer and use it in GitHub Desktop.
Save kickserv/292411 to your computer and use it in GitHub Desktop.
$ 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:'
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