Re: Cocoa undo considerations
Re: Cocoa undo considerations
- Subject: Re: Cocoa undo considerations
- From: Raphael Sebbe <email@hidden>
- Date: Thu, 12 Jul 2001 08:52:02 +0200
It is said in NSInvocation's doc that invocation do not retain their
target and args by default. Do you mean NSUndoManager forces a retain on
those ? I don't think so, as I went into problems of message sent to
deallocated objects on undo (which I shouldn't if those had been
retained by the invocation).
Raphael
On Wednesday, July 11, 2001, at 09:29 PM, Chris Meyer wrote:
You don't really need to worry about retaining it if its an argument to
the NSInvocation object returned by the prepareWithInvocationTarget: of
NSUndoManager. NSInvocation will retain it as far as I understand.