Re: Refreshing NSArrayController after Undo/Redo
Re: Refreshing NSArrayController after Undo/Redo
- Subject: Re: Refreshing NSArrayController after Undo/Redo
- From: Joanna Carter <email@hidden>
- Date: Mon, 22 Mar 2010 19:22:50 +0000
OK, I've done some more digging and found where the problem appears to be happening.
The Undo isn't happening because there is nothing to undo!!!
The situation is happening because I am using a secondary MOC for editing.
Once the edited object is saved to the secondary MOC, I reconcile the main MOC by calling mergeChangesFromContextDidSaveNotification: in response to the save notification.
However, if I check the undoManager on the main MOC, the canUndo message returns NO, both before and after the merge.
So, is there any way to detect that a change has happened on the main MOC, when the change has only been saved to the secondary MOC and merged to the main one?
Joanna
--
Joanna Carter
Carter Consulting
_______________________________________________
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