[MacRuby-devel] [MacRuby] #409: Attribute setter should be accepted as KVO setter
MacRuby
ruby-noreply at macosforge.org
Tue May 11 20:31:56 PDT 2010
#409: Attribute setter should be accepted as KVO setter
---------------------------------+------------------------------------------
Reporter: neeracher@… | Owner: lsansonetti@…
Type: enhancement | Status: closed
Priority: minor | Milestone:
Component: MacRuby | Resolution: wontfix
Keywords: |
---------------------------------+------------------------------------------
Changes (by lsansonetti@…):
* status: new => closed
* resolution: => wontfix
Comment:
As of trunk, using #attr_writer or #attr_accessor will generate a KVO
setter automatically (so, changing your snippet to do `attr_writer :b'
makes it work). Defining #foo= will not. I think this is a good deal, we
don't want too much magic.
--
Ticket URL: <http://www.macruby.org/trac/ticket/409#comment:3>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list