FROM : Aaron Jacobs
DATE : Tue Aug 08 07:20:25 2006
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?
DATE : Tue Aug 08 07:20:25 2006
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?
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

