#409: Attribute setter should be accepted as KVO setter
---------------------------------+------------------------------------------
 Reporter:  neerac...@…          |        Owner:  lsansone...@…        
     Type:  enhancement          |       Status:  closed               
 Priority:  minor                |    Milestone:                       
Component:  MacRuby              |   Resolution:  wontfix              
 Keywords:                       |  
---------------------------------+------------------------------------------
Changes (by lsansone...@…):

  * 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/>

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to