Re: Core Data : How force end editing of new object before Undo?
Re: Core Data : How force end editing of new object before Undo?
- Subject: Re: Core Data : How force end editing of new object before Undo?
- From: Jerry Krinock <email@hidden>
- Date: Thu, 01 Dec 2011 09:30:20 -0800
I couldn't find any concept better than: End editing before undoing.
However, I got rid of the code smell of my original solution. Instead, I register the window controller to receive it's document's undo manager's NSUndoManagerWillUndoChangeNotification and NSUndoManagerWillRedoChangeNotification. The registered selector ends editing as explained in the documentation of -[NSWindow endEditingFor:] ▸ Discussion.
It still seems like Cocoa should be doing this automatically, but it's time to move on.
_______________________________________________
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