#252: Support key-value observing via the attr_accessor family of methods
--------------------------------+-------------------------------------------
 Reporter:  jvoor...@…          |       Owner:  lsansone...@…                   
  
     Type:  enhancement         |      Status:  new                             
  
 Priority:  minor               |   Milestone:                                  
  
Component:  MacRuby             |    Keywords:  key-value observing, 
attr_accessor
--------------------------------+-------------------------------------------
 As per the email thread at http://lists.macosforge.org/pipermail/macruby-
 devel/2009-May/001705.html, extend attr_accessor and attr_writer to
 support key-value observing via setter methods.

 Example:

 class Notifier
   attr_writer :value
 end

 Notifier#value= could be implemented in terms of Notifier#setValue so
 observers of Notifier receive notification when the value is changed.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/252>
MacRuby <http://macruby.org/>

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

Reply via email to