界面生成器错误?

发布于 2024-09-13 07:25:45 字数 375 浏览 1 评论 0原文

我有一个可可程序,我正在 10.6 系统上编写,但目标是 10.5。

在10.6系统上,运行良好。但是,当我在 10.5 机器上运行它时,我得到:

菜单项操作的发送者是 现在是 NSMenuItem,而不是 NSMatrix。一个 菜单项操作方法似乎是 尝试发送 NSMatrix 方法 'accessibilityIsIgnored' 到其 发件人。这不再有效。 请更改代码。

我在网上查了一下,发现一个地方暗示我在代码中调用了“accessibilityIsIgnored”,但我没有,或者系统上有 InterfaceBuilder 库的多个副本,但实际上没有。

还有其他人看到这个吗?

I have a cocoa program that I have I am writing on a 10.6 system, but targeting to 10.5.

On the 10.6 system, it works fine. However, when I run it on the 10.5 machine, I get:

The sender of menu item actions is
now the NSMenuItem, not an NSMatrix. A
menu item action method appears to be
trying to send the NSMatrix method
'accessibilityIsIgnored' to its
sender. This is no longer valid.
Please change the code.

I looked this up online and found that one place implies that I'm calling "accessibilityIsIgnored" in my code, which I am not, or that there are multiple copies of the InterfaceBuilder library on the system, which there are not.

has anyone else seen this?

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

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

发布评论

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

评论(1

↙温凉少女 2024-09-20 07:25:45

在 IB 中打开 nib 文件,然后在 nib 文档窗口右下角查找黄色小警告标志。一般来说,IB 会告诉你是否做了一些只能在 10.6 上运行的事情,但它对此非常安静。

Open your nib files in IB and look for the little yellow warning sign in the bottom right of the nib document window. Generally IB will tell you if you have done something that only works on 10.6, but it is really quiet about it.

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