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

Re: Undo and Core Data issue


  • Subject: Re: Undo and Core Data issue
  • From: Michael Latta <email@hidden>
  • Date: Wed, 5 Mar 2008 21:41:27 -0800

It was separate undo managers. I overrid the undoManager method of the view to use the one from the document and things are working now. Thanks for the help in what to check.

Michael


On Mar 5, 2008, at 7:53 PM, Ben Trumbull wrote:

At 6:58 PM -0800 3/5/08, Michael Latta wrote:
The calls are on the Will/Did undo/redo notifications not the KVO callbacks on object changes.

Ah, okay. There shouldn't be any need to call - processPendingChanges there, unless you're programmatically working with your own undo groups.


What I am seeing is that my code changes a managed object property, I undo, and no change occurs in the managed object. The property affected is a binary attribute (a CATransform3D as bytes).

Does your code changing the property trigger a KVO event (i.e. are you missing a call to -willChangeValueForKey:) ? Do you see notifications from the MOC when you initially make the change ?


Are you undoing programmatically or as a user ?

The undo behaves the same as before I added any notification processing however.

That suggests the problem lies elsewhere. --

-Ben

_______________________________________________

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


References: 
 >Re: Undo and Core Data issue (From: Ben Trumbull <email@hidden>)
 >Re: Undo and Core Data issue (From: Michael Latta <email@hidden>)
 >Re: Undo and Core Data issue (From: Ben Trumbull <email@hidden>)

  • Prev by Date: Re: Undo and Core Data issue
  • Next by Date: Need help with NSToolbarItem subclass and custom view
  • Previous by thread: Re: Undo and Core Data issue
  • Next by thread: CATiledLayer too slow to update
  • Index(es):
    • Date
    • Thread