re: CoreData migration and file change
re: CoreData migration and file change
- Subject: re: CoreData migration and file change
- From: Ben Trumbull <email@hidden>
- Date: Tue, 3 Feb 2009 13:46:59 -0800
I have a CoreData application and am migrating the data store. When
the user opens an old store the migration happens automatically
creating a new file. The problem is when the user saves the first
time after the migration he gets the message: "This documents file
has been changed by another application since you opened or saved it."
What is the correct procedure for handling the file change or how can
I avoid this message?
This is an issue with NSDocument. Try using its -
setFileModificationDate: method to inform it about the migration.
Others have dealt with this, so trying googling up the archives.
- Ben
_______________________________________________
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