getPermanentIDsForObjects不会被调用

约翰

我在实验NSIncrementalStore时,文档说:“首先,持久性存储协调器调用getPermanentIDsForObjects:error:..然后,协调器调用executeRequest:withContext:error:”

在我的情况下,getPermanentIDsForObjects方法没有被调用,但是executeRequest将通过NSSaveRequestType参数被调用。问题是什么?

我创建了一个NSManagedObject并称为save方法。

约翰

我试图将本地存储和远程存储添加到协调器,这导致阻塞了方法调用。所以我刚刚删除了第一行。

[_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options: @{NSSQLitePragmasOption : @{@"journal_mode" : @"DELETE"}} error:&error];
[_persistentStoreCoordinator addPersistentStoreWithType:@"CustomIncrementalStore" configuration:nil URL:nil options:nil error:&error];

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章