On 01.02.2013, at 21:13, mail...@ericgorr.net wrote: > > The problem then is that my NSPersistentDocument generates an error which > says: > > "The document "xxx" could not be saved. The file has been changed by > another application" > > Of course, the other application is the NSOperation which did change the > document. > > How can I correctly avoid the error?
Never tried it, but maybe the workaround documented in NSManagedObjectContext>obtainPermanentIDsForObjects:error: works here too (calling setFileModificationDate on the document). https://developer.apple.com/library/mac/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectContext_Class/NSManagedObjectContext.html#//apple_ref/doc/uid/TP30001182-SW7 Cheers, felix > > Thank you. > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/franz%40ergosign.de > > This email sent to fr...@ergosign.de _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com