在 ios swift 中使用应用和共享扩展领域?
Using realm for app and share extension in ios swift?
我注意到在这个 link 中:
https://realm.io/news/thomas-goyne-fast-inter-process-communication/
它声明在领域中支持进程间通信。这是否意味着我可以毫无问题地在 ios 中的应用程序及其共享扩展中打开数据库。
如果是这样,对于领域对象 class,我是否需要将它们放在某个框架中,或者我是否可以为了简单起见在应用程序和应用程序扩展中复制 class?
It states that inter process communication is supported in realm.
没错!
Does that mean I will have no problem opening the database in both an app and its share extension in ios.
这就是计划!
If so, for the realm object class, do I need to put them in some framework or can I just duplicate the class in both the app and app extension just for simplicity?
两种方法都可以。
我们关于进程间 Realm 访问的文档很少,因为按照设计,它应该 "just work",但事实上您链接到的博客文章是 Realm 声明支持多进程访问的唯一地方是可笑的,这就是为什么我们 #3362 跟踪改进我们关于这个主题的文档。
我注意到在这个 link 中: https://realm.io/news/thomas-goyne-fast-inter-process-communication/
它声明在领域中支持进程间通信。这是否意味着我可以毫无问题地在 ios 中的应用程序及其共享扩展中打开数据库。 如果是这样,对于领域对象 class,我是否需要将它们放在某个框架中,或者我是否可以为了简单起见在应用程序和应用程序扩展中复制 class?
It states that inter process communication is supported in realm.
没错!
Does that mean I will have no problem opening the database in both an app and its share extension in ios.
这就是计划!
If so, for the realm object class, do I need to put them in some framework or can I just duplicate the class in both the app and app extension just for simplicity?
两种方法都可以。
我们关于进程间 Realm 访问的文档很少,因为按照设计,它应该 "just work",但事实上您链接到的博客文章是 Realm 声明支持多进程访问的唯一地方是可笑的,这就是为什么我们 #3362 跟踪改进我们关于这个主题的文档。