Lion 沙箱化现有的 Snow Leopard 核心数据应用程序
我正在努力将现有的 Snow Leopard 应用商店应用程序迁移到沙盒 Lion 应用程序。作为沙箱的一部分,库路径从 ~/Library 移动到 ~/Library/Containers/appname/Data/Library。
用户默认值自动从 ~/Library/Preferences/app.plist 转移到 ~/Library/Containers/appname/Data/Library/Preferences/app.plist。
但我的核心数据 SQLite 存储不是。我已经搜索过,但找不到与此迁移相关的任何内容。
我需要手动迁移商店还是我在这里遗漏了一些东西?如果我确实必须自己迁移它,我会对如何访问旧的存储文件感到困惑..因为它驻留在〜/ Library,在沙箱化后不再可访问..
非常感谢任何帮助!
I'm going through the effort of migrating an existing Snow Leopard app store application to a sandboxed Lion application. As part of the sandboxing, the Library path moved from ~/Library to ~/Library/Containers/appname/Data/Library.
The user defaults were automagically carried over from ~/Library/Preferences/app.plist to ~/Library/Containers/appname/Data/Library/Preferences/app.plist.
But my core data sqlite store was not. I've searched, but cannot find anything related to this migration.
Do I need to migrate the store manually or am I missing something here? If I do have to migrate it myself, I'm confused with how to access the old store file .. since it resides at ~/Library, which is no longer accessible after being sandboxed..
Any help is much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更多信息请参见:
http://developer.apple.com/library/mac/#documentation/Security/Conceptual/AppSandboxDesignGuide/MigrationALegacyApp/MigrationALegacyApp.html#//apple_ref/doc/uid/TP40011183-CH6-SW1
More info here:
http://developer.apple.com/library/mac/#documentation/Security/Conceptual/AppSandboxDesignGuide/MigratingALegacyApp/MigratingALegacyApp.html#//apple_ref/doc/uid/TP40011183-CH6-SW1