How to install PyObjC with Python 3 and Xcode 3 on Mac OS X 10.6

I want to start using PyObjC. I have Xcode 3 on OS X 10.6

I have both Python 3.2 and 2.6 installed, but I want to use 3.2

I heard that PyObjC is turned on and that I just select it in the "New Xcode Project" dialog box, but I do not see this parameter. This makes me assume that I missed some installation step.

Can someone tell me how to configure and run PyObjC with my configuration?
Thanks!

+4
source share
1 answer

Installed PyObjC: /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC/

The parts that you are missing are the Project and File Templates. Apple has stopped including those from Leopard since the Xcode and PyObjC development cycles are completely out of sync.

You can download them yourself from the PyObjC repository ; install them in the library ~ / Library / Application Support / Developer / Shared / Xcode / Project Templates and ~ / Library / Application Support / Developer / Shared / Xcode / File Templates, and you should be ready to go.

Please note that the supplied PyObjC is an older version (2.2bsomething), which means that, unfortunately, it will not work with Python 3 *. You will need to create your own copy of the framework. Another big annoyance about this is that the metadata in this standard PyObjC does not contain much material (especially for blocks) that was added to Cocoa in Snow Leopard. Everything that says “Available in 10.6 and later” in documents is not available in the PyObjC system, so you may need to build and statically link the newer version for this reason.


* And Python 3 support in PyObjC is fairly new and potentially unstable - described as "pre-alpha" in v2.3 NEWS.txt .

+2
source

All Articles