CoreData NSPersistentDocument Tutorial question
CoreData NSPersistentDocument Tutorial question
- Subject: CoreData NSPersistentDocument Tutorial question
- From: Alessandro Pistocchi <email@hidden>
- Date: Tue, 11 Sep 2007 10:53:39 +0200
Hi everybody,
I am evaluating CoreData and I tried the NSPersistentDocument
Tutorial. I found the bug with revert and I looked at your archives
where it says basically to adopt the mediator pattern in order to get
rid of that bug.
Is there another way, using the same strategy described in the
tutorial (i.e. having an instance variable in the document) ?
Besides, I noticed that undo/redo has a bug when deleting or cutting
entities: if I delete or cut some objects, and then perform undos
until I get to the saved version of the document (or to the unsaved
emtpy document if I started from an empty one), the window document
changed status remains active.
This is not just an aesthetic anomaly: if I add some objects to the
document, save the doc, delete something and perform undo, I find
that the document changed is wrong.
It seems that the change count is 1 more than the correct value.
Did anybody notice the same? Is there a solution to it?
Thank you,
Alessandro
_______________________________________________
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