Are undo method arguments retained?
Are undo method arguments retained?
- Subject: Are undo method arguments retained?
- From: Dean Tresner <email@hidden>
- Date: Wed, 26 Jun 2002 11:25:01 -0400
Greetings,
I am tracking down some erratic undo behavior in my code and I'm
wondering if I'm making a bad assumption. Here is the accessor method
I'm fretting over:
- (void)setItemList:(NSMutableArray *)value {
[[[self undoManager] prepareWithInvocationTarget:self]
setItemList:itemList];
[value retain];
[itemList release];
itemList = value;
}
I've assumed that NSUndoManager (or NSInvocation or whatever) will
retain the original the original itemList for as long as it's interested
in it. Is that not the case?
Dean
_______________________________________________
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.