[MacRuby-devel] [MacRuby] #661: [NSUndoManager um.prepareWithInvocationTarget:] is broken

MacRuby ruby-noreply at macosforge.org
Tue Apr 20 22:28:15 PDT 2010


#661: [NSUndoManager um.prepareWithInvocationTarget:] is broken
-----------------------------------+----------------------------------------
 Reporter:  lsansonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                 |      Status:  new                  
 Priority:  blocker                |   Milestone:  MacRuby 0.6          
Component:  MacRuby                |    Keywords:                       
-----------------------------------+----------------------------------------
 Looks like NSUndoManager's proxy functionality is broken with trunk. This
 used to work before, unfortunately since the spec got tagged we did not
 see the regression.

 Here is a reduction from the spec:

 {{{
 framework 'Foundation'

 um = NSUndoManager.new
 p um.object_id

 $ary = []
 class Foo
   def foo
     $ary << 42
   end
 end
 o = Foo.new
 p o.object_id

 um.prepareWithInvocationTarget(o).foo

 p $ary
 um.undo
 p $ary
 }}}

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



More information about the MacRuby-devel mailing list