• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreData based document NSUndoManager troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: CoreData based document NSUndoManager troubles
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: NSApplicationMain() doesn't set NSApp to my subclass
  • Next by Date: [newbie] access the controller for the current window
  • Previous by thread: Re: CoreData based document NSUndoManager troubles
  • Next by thread: Re: CoreData based document NSUndoManager troubles
  • Index(es):
    • Date
    • Thread