* Source/NSUndoManager.m (-registerUndoWithTarget:selector:object:):

Have the invocation to retain it's arguments. (Fixes bug #4692.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20635 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2005-01-30 11:54:07 +00:00
parent 5cc2211a8e
commit cedd653710
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-01-29 03:46 Matt Rice <ratmice@yahoo.com>
* Source/NSUndoManager.m (-registerUndoWithTarget:selector:object:):
Have the invocation to retain it's arguments. (Fixes bug #4692.)
2005-01-21 22:08 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSUndoManager.m: [NSUndoManager redo] and

View file

@ -686,8 +686,8 @@
* You invoke this method with the target of the
* undo action providing the selector which can perform the undo with
* the provided object. The object is often a dictionary of the
* identifying the attribute and thier values before the change.
* The invocation will added to the current grouping.<br />
* identifying the attribute and their values before the change. The object
* will be retained. The invocation will added to the current grouping.<br />
* If the registrations have been disabled through [-disableUndoRegistration],
* this method does nothing.<br />
* Unless the reciever implicitly
@ -726,6 +726,7 @@
g = _group;
sig = [target methodSignatureForSelector: aSelector];
inv = [NSInvocation invocationWithMethodSignature: sig];
[inv retainArguments];
[inv setTarget: target];
[inv setSelector: aSelector];
[inv setArgument: &anObject atIndex: 2];