Follow-up Comment #3, bug #14488 (project gnustep): We've already investigated in the mean time together with Quentin - the correct (Cocoa-conforming) solution. In Cocoa there is a special subclass called _NSUndoInvocation which retains it's arguments doesn't retain the target, as retaining the target would result in a retain-loop (the target of undo operations is usually the same object as the one which owns the undo manager).
I've created a fix for this bug by modifying NSInvocation to include a method named -retainArgumentsIncludingTarget: where the sender can explicitly define whether or not retain the target, and also modified NSUndoManager.m to use it. Quentin should put it into CVS some time soon. The fix is available at http://openspace.adlerka.sk/NSUndoManagerFix.tar.gz . _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14488> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnustep
