i have a core data app that supports both real time events and user interaction. some of the user interactions can generate an undo stack similar to the following:

beginUndoGroup
        beginUndoGroup
        core data action
        core data action
        endUndoGroup
myAction
endUndoGroup

now some of the real time events can cause the target of myAction to be deleted and i can easily remove this from the undo stack. but that leaves a nested group which is no longer meaningful and it leaves the undo menu action name referring to the deleted myAction

is there anyway to delete the entire group (including the nested core data actions)? if so, how? alternatively, can anyone suggest an approach to deal with this situation?

thanx,
ken

p.s. i don't know if its relevant or not, but i have setGroupsByEvent set to NO and i begin an undo group when i'm ready to execute a user action.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to