• 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
[REPOST] Removing particular undo/redo actions with Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[REPOST] Removing particular undo/redo actions with Core Data


  • Subject: [REPOST] Removing particular undo/redo actions with Core Data
  • From: Jean-Olivier Lanctôt <email@hidden>
  • Date: Tue, 6 Feb 2007 20:09:54 -0500

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


  • Follow-Ups:
    • Re: [REPOST] Removing particular undo/redo actions with Core Data
      • From: Jim Correia <email@hidden>
    • Re: [REPOST] Removing particular undo/redo actions with Core Data
      • From: Murat Konar <email@hidden>
    • Re: [REPOST] Removing particular undo/redo actions with Core Data
      • From: Jean-Olivier Lanctôt <email@hidden>
  • Prev by Date: Re: Adding binding types to custom IB palete
  • Next by Date: Zoom Button vs. windowWillResize
  • Previous by thread: Re: Framework for printing reports?
  • Next by thread: Re: [REPOST] Removing particular undo/redo actions with Core Data
  • Index(es):
    • Date
    • Thread