iPhone 上的 BNRPersistence 和 NSDocument

发布于 2024-08-30 07:11:52 字数 276 浏览 3 评论 0原文

我正在尝试让 BNRPersistence 在 iPhone 应用程序中运行,但我遇到了一个不知道如何解决的问题。请记住,我对 iPhone 开发人员还比较陌生。

问题在于 BNRStoreDocument 是 NSDocument 的子类,后者存在于 Cocoa 框架中,因此在 iPhone 上不可用。显然我遇到了编译错误,它找不到 NSDocument。 BNRPersistence 的开发者声称它可以在 iPhone 上运行,所以我确信有一个解决方案,我只是不知道它是什么。

任何帮助将不胜感激!

I'm trying to get BNRPersistence running in an iPhone app, but I'm having a problem that I have no idea how to solve. Keep in mind I'm relatively new to iPhone dev.

The problem is that BNRStoreDocument subclasses NSDocument, which exists in the Cocoa framework and thus isn't available on the iPhone. So obviously I'm getting compile errors that it can't find NSDocument. The developer of BNRPersistence states that it works on the iPhone, so I'm sure there a solution, I just don't what it is.

Any help would be greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心作怪 2024-09-06 07:11:52

iphone Demo 项目中没有 BNRStoreDocument,只有 BNRStore。我认为假设 BNRStoreDocument 仅在 Mac OS X 上的 Cocoa 下运行时才可用是合理的。BNRStore

是 NSPersistantStore 的类似物。我很确定这就是您应该在 iPhone 上使用的功能。

The iphone Demo project does not have BNRStoreDocument in it but just BNRStore. I think is reasonable to assume that BNRStoreDocument is only available when running under Cocoa on a Mac OS X.

The BNRStore is an analog of NSPersistantStore. I'm pretty sure that's what you should be using on the iPhone.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文