[MacRuby-devel] [MacRuby] #409: Attribute setter should be accepted as KVO setter
MacRuby
ruby-noreply at macosforge.org
Wed Oct 28 16:34:14 PDT 2009
#409: Attribute setter should be accepted as KVO setter
---------------------------------+------------------------------------------
Reporter: neeracher@… | Owner: lsansonetti@…
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
MacRuby rev 2903:
{{{
class A
attr_reader :a, :b
def setA(value)
@a = value
end
def b=(value)
@b = value
end
end
a = A.new
a.setValue("hey", forKey:"a")
p a
a.setValue("yo", forKey:"b")
p.a
}}}
It would be nice if the ruby style setter worked for KVO as well.
--
Ticket URL: <http://www.macruby.org/trac/ticket/409>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list