• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
re: CoreData migration and file change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 document’s 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


  • Prev by Date: Re: Analyzing Core Data Conflict List
  • Next by Date: re: Core Data: arrangedObjects for multiple selections
  • Previous by thread: Re: CoreData migration and file change
  • Next by thread: Core Data: arrangedObjects for multiple selections
  • Index(es):
    • Date
    • Thread