How do I share a Core Data store between processes using NSDistributedNotifications?

前端 未结 6 2057
星月不相逢
星月不相逢 2020-12-29 15:24

Background

I\'ve already posted a question about the basics of sharing a Core Data store between processes.

I\'m trying to implement the rec

6条回答
  •  半阙折子戏
    2020-12-29 15:58

    You're looking for - (void)refreshObject:(NSManagedObject *)object mergeChanges:(BOOL)flag I believe.

    This will refresh the object with the info in the persistent store, merging changes if you want.

提交回复
热议问题