[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #14488] NSUndoManager doesn't retain invocation.

From: Sašo Kiselkov
Subject: [bug #14488] NSUndoManager doesn't retain invocation.
Date: Tue, 13 Sep 2005 17:18:53 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2)

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

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:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]