mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* 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:
parent
5cc2211a8e
commit
cedd653710
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue