Xcode 4 上的 PyObjC [英] PyObjC on Xcode 4

查看:23
本文介绍了Xcode 4 上的 PyObjC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 3 有用于在 Python 中构建 Cocoa 子类的模板.我最近升级到 Xcode 4,但我不知道如何在 Xcode 4 中使用除 C 系列(C、C++、Obj-C)之外的其他语言.

Xcode 3 had templates for building Cocoa subclasses in Python. I've recently upgraded to Xcode 4 but I cannot find out how I can use other languages besides the C family (C, C++, Obj-C) in Xcode 4.

有人知道吗?

推荐答案

您正在寻找的 Python-Cocoa 类模板是 PyObjC 的一部分,但 Apple 在 Leopard 结束时停止将它们包含在安装中(我认为),因为它们与 Xcode 不同步.您可以自己从 PyObjC 存储库下载最新版本.根据这个最近的指南 我发现,他们应该进入 ~/Library/Developer/Xcode/Templates/.

The Python-Cocoa class templates you're looking for are part of PyObjC, but Apple stopped including them in the install around the end of Leopard (I think), because they got out of sync with Xcode. You can download the latest versions yourself from the PyObjC repository. According to this recent guide I found, they should go in ~/Library/Developer/Xcode/Templates/.

但是请注意:根据 PyObjC 的开发人员 Ronald Oussoren 的说法,Xcode 4 的 Interface Builder 部分与 PyObjC 完全不兼容.他做了一个发布到pythonmac邮件列表另一个到 pyobjc-dev 列表 建议向 Apple 提交错误,请求继续 Xcode 支持桥接器.无论是他还是你,都无能为力;苹果必须这样做.

Beware, however: according to Ronald Oussoren, PyObjC's developer, the Interface Builder part of Xcode 4 is not at all compatible with PyObjC. He made a posting to the pythonmac mailing list and another to the pyobjc-dev list suggesting that bugs be filed with Apple, requesting continued Xcode support for the bridge. There's nothing that can be done on either his or your end; Apple has to do this.

你必须使用 Xcode 3 来做 PyObjC GUI 的事情.

You'll have to keep Xcode 3 around to do PyObjC GUI stuff.

这篇关于Xcode 4 上的 PyObjC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆