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: Murat Konar <email@hidden>
- Date: Tue, 06 Feb 2007 17:42:02 -0800
No answers here but an observation that even if you could remove just
some undo actions, how do you present this to your users in a way
that doesn't seem broken or hacky? Users expect to be able to use
Undo to return to a previous state; removing some undo actions would
violate this expectation.
Follow-ups to http://tech.groups.yahoo.com/group/mac-gui-dev/...
_murat
On Feb 6, 2007, at 5:09 PM, 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:
This email sent to email@hidden