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
Removing particular undo/redo actions with Core Data
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Removing particular undo/redo actions with Core Data
Subject
:
Removing particular undo/redo actions with Core Data
From: Aaron Jacobs <
email@hidden
>
Date: Mon, 7 Aug 2006 22:20:25 -0700
I have a situation in which whenever a particular action is performed on an managed object, it instantly becomes a problem for any undo actions to be performed on that object, but it is totally fine for the existing actions on the undo stack to remain for the rest of the managed objects.
I know that you can temporarily disable undo action registration, but what I want to do in this case is get rid of *all* past undo actions for the object, but only that particular object and not everything else. NSUndoManager's removeAllActionsWithTarget: is pretty much exactly what I want, but calling that with the managed object in question as the argument does not seem to remove any undo actions, presumably because Core Data handles the undo registrations in a less straight-forward manner than just registering them for the managed object itself.
Is there any way to accomplish what I want to do, or am I just going to have to settle for clearing the entire undo stack for now and file an enhancement request for later?
_______________________________________________
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
Prev by Date:
Re: Crashing on all relevant exceptions
Next by Date:
Biting off too much?
Previous by thread:
Re: ftp file busy?
Next by thread:
Biting off too much?
Index(es):
Date
Thread