Any Cocoa experts out there? Core Data (Cocoa’s new data store framework) has been working great for Forest’s development, and I’m glad I made the switch. But I’ve just run into a problem with Core Data’s undo support that I can’t seem to get around. An example project is attached to this posting.
The first problem you will get a “Could Not Merge Changes” error in some cases when trying to save a Core Data document even when using a single managed object context. To reproduce this with the attached example do this:
- Add new person.
- Set name for new person.
- Save document.
- Undo twice, so that the name is unset and the person is removed.