Core Data NSDocument 应用程序 - 打开 PDF,另存为捆绑包
我正在开发一个应用程序,需要能够打开 PDF 文档,然后另存为包含此 PDF 和核心数据对象图的包。该应用程序还应该打开自定义捆绑包。
有关于从哪里开始的指示吗?
谢谢
I'm working on an app that needs to be able to open a PDF document and then save as a bundle containing this PDF and the core data object graph. The app should also open the custom bundle.
Any pointers on where to start?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说这两个来源:
你当然可以使用 NSPersistentDocument。创建数据模型时,您可以使用数据对象和外部存储来创建根文档对象来存储 PDF。
或者,使用 NSDocument,并自己处理包加载和核心数据堆栈。
I'd say these two sources:
You certainly can use NSPersistentDocument. When you create your data model, you could create a root document object with a data object and external storage to store the PDF.
Or, use NSDocument, and handle the bundle loading and Core Data stack yourself.