Re: [REPOST] Removing particular undo/redo actions with Core Data
Re: [REPOST] Removing particular undo/redo actions with Core Data
- Subject: Re: [REPOST] Removing particular undo/redo actions with Core Data
- From: Jean-Olivier Lanctôt <email@hidden>
- Date: Tue, 6 Feb 2007 20:38:59 -0500
I take it that in this case, the target is simply the managed object
*context* and not the particular managed object....
So, in this case, how can I tell the undo manager to remove actions
for a particular managed object.
Thanks.
On 6 févr. 07, at 20:09, Jean-Olivier Lanctôt wrote:
I'm reposting this question from Aaron Jacobs for which I could not
find answer
on cocoa builder.
I have the same problem & looking for a solution.
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?
Thanks in advance!
--Olivier
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden