Re: CoreData based document NSUndoManager troubles
Re: CoreData based document NSUndoManager troubles
- Subject: Re: CoreData based document NSUndoManager troubles
- From: Colin Cornaby <email@hidden>
- Date: Wed, 17 Aug 2005 15:13:46 -0700
Didn't fix anything. Here is my full method that needs to be undone:
NSData *oldData = [self valueForKey:@"data"];
[self setValue:someData forKey:@"data"];
[[[self managedObjectContext] undoManager]
registerUndoWithTarget:self
selector:@selector(setResourceData:)
object:oldData];
[[[self managedObjectContext] undoManager]
setActionName:@"Edit Resource"];
---------------------------
Colin Cornaby
ProToys - White Magic Labs - http://whitemagiclabs.com
Macintosh Specialist - University of Portland - htttp://up.edu
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden