richkilmer/hotcocoa

kvo_array not working

Opened this issue · 0 comments

This is with macruby 0.6 and hotcocoa 0.5.1

require 'rubygems'
require 'hotcocoa'
class Foo
kvo_array :stuff do
def size
3
end
def
i
end
end
end

results in
.rvm/gems/macruby-0.6/gems/hotcocoa-0.5.1/lib/hotcocoa/kvo_accessors.rb:34:in `block': wrong argument type UnboundMethod (expected Proc/Method) (TypeError)