Re: Undo in tables
Re: Undo in tables
- Subject: Re: Undo in tables
- From: Chris Purcell <email@hidden>
- Date: Sun, 14 Apr 2002 00:06:50 +0100
I don't think Apple would be so stupid as to not retain critical
objects, would they?? Quoth the documentation: "Does not retain target,
but does retain anObject" (where anObject in the argument)
Is this incorrect?
Kritter out.
Now this is one aspect of undo that I've heard contradicting
versions of - namely, whether or not arguments are retained by
NSUndoManager when you register an undo. I've seen several
people say that they are not retained, but every test that I've
ever run indicates that they are retained, via -[NSInvocation
retainArguments]. This is confirmed, at least in my apps, by
running OmniObjectMeter and looking at the retain/release
history. Perhaps the arguments are retained when using
prepareWithInvocationTarget: but not
registerUndoWithTarget:selector:object: ?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.