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: Tue, 23 Mar 2010 10:49:08 +0000
Hi folks
Now which one of you here hasn't read the docs fully and properly before asking a question? :-)
Jerry Krinock dropped me a private line and suggested that the title for this thread should have been "How to register Undo when syncing MOCs with mergeChangesFromContextDidSaveNotification:". Thank you Jerry, that was just the nudge I needed.
Regardless of any messing around with secondary MOCs in separate windows and controllers, the simple truth of the matter is:
The default implementation of Undo in a MOC only undoes *uncommitted* changes to that MOC. Once you've called save: on the MOC there is no (automatic) going back.
But, now I know what does and doesn't happen, I have a cunning plan...
I'll let you know when I get it sorted.
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