• 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
another Core Data and Undo Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

another Core Data and Undo Question


  • Subject: another Core Data and Undo Question
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 7 Dec 2010 17:14:54 -0800

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: another Core Data and Undo Question
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: OS X Desktop
  • Next by Date: Cocoaheads Lake Forest meets tomorrow, 12/8 at 7pm
  • Previous by thread: Re: iOS when is my app launched
  • Next by thread: Re: another Core Data and Undo Question
  • Index(es):
    • Date
    • Thread