Ticket #661 (closed defect: fixed)
[NSUndoManager um.prepareWithInvocationTarget:] is broken
| Reported by: | lsansonetti@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.

