[MacRuby-devel] [MacRuby] #629: Bindings not working for subclass
MacRuby
ruby-noreply at macosforge.org
Sun Apr 18 19:21:39 PDT 2010
#629: Bindings not working for subclass
---------------------------------+------------------------------------------
Reporter: dylan@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: critical | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
Comment(by lsansonetti@…):
Smaller reduction:
{{{
$ cat t2.rb
class Foo
def name; 'foo'; end
end
class Bar < Foo
def name; 'bar'; end
end
o=Bar.new
p o.valueForKey('name')
$ ./miniruby t2.rb
NSUnknownKeyException: [<Bar 0x4004b1dc0> valueForUndefinedKey:]: this
class is not key value coding-compliant for the key name. (RuntimeError)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/629#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list