karelia / BSManagedDocument

Brings UIManagedDocument's design to OS X
Other
55 stars 25 forks source link

Where to perform migrations? #26

Closed sebromero closed 10 years ago

sebromero commented 10 years ago

Which of the BSManagedDocument methods should be overridden in order to perform custom migrations? If I do so in configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error: the application complains while opening the document that the file has been modified by another application.

adib commented 10 years ago

You probably forgot to set NSDocument's notion of the file's date after migration?

Thank you


Sasmito Adibowo http://cutecoder.org

On 28 May, 2014, at 6:38, Sebastian notifications@github.com wrote:

Which of the BSManagedDocument methods should be overridden in order to perform custom migrations? If I do so in configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error: the application complains while opening the document that the file has been modified by another application.

— Reply to this email directly or view it on GitHub.

sebromero commented 10 years ago

Brilliant! Thank you @adib .