[MacRuby-devel] [MacRuby] #393: Custom accessors for KVO

MacRuby ruby-noreply at macosforge.org
Mon Oct 19 14:24:33 PDT 2009


#393: Custom accessors for KVO
----------------------------------+-----------------------------------------
 Reporter:  paolo.bosetti@…       |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  minor                 |   Milestone:  MacRuby 0.5          
Component:  MacRuby               |    Keywords:  KVO                  
----------------------------------+-----------------------------------------
 if one creates custom accessors fro object keys to be used for KVO, the
 setter cannot be made KVO-compliant. The runtime error message is
 something like:

 KVO autonotifying only supports -set<Key>: methods that return void.
 Autonotifying will not be done for invocations of -[MyController
 setSlider:].

 Even making the setter returning nil doesn't work.
 See the attached example.

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



More information about the MacRuby-devel mailing list