Hi all,

I'm writing about PyObjC, and found a couple of rough spots. I decided it 
would be easier to fix them than explain how to work around them :-)

The files with the fixes in them are here:

<http://rentzsch.com/share/pyobjc-1.3.6-macosx10.4-wolf.zip>

The archive contains four files:

$ find . -type f
./Library/Application Support/Apple/Developer Tools/Project 
Templates/Application/PyObjC 
Application/PROJECTNAMEASIDENTIFIER.xcode/default.pbxuser
./Library/Application Support/Apple/Developer Tools/Project 
Templates/Application/PyObjC Document-based 
Application/PROJECTNAMEASIDENTIFIER.xcode/default.pbxuser
./Library/Application Support/Apple/Developer Tools/Project 
Templates/Application/PyObjC Mixed 
Application/PROJECTNAMEASIDENTIFIER.xcode/default.pbxuser
./Library/Python/2.3/site-packages/PyObjC/PyObjCTools/XcodeSupport/api.py

As the archive name implies, I'm targeting 10.4. My changes shouldn't 
break anything on 10.3, but I haven't personally verified that.

Two things fixed:

* Xcode 2.1 py2app build exception. Bob mentioned PyObjC 1.4 will fix the 
.xcodeproj name-change breakage issue. I don't know the 1.4 timeline, so 
I'm writing about what's out now. My version of the api.py first tries 
.xcodeproj, and falls back to .xcode if it's not found. Tested on Xcode 
2.1 and 2.0.

* New PyObjC app projects created via the New Project Assistant didn't 
have any executables in the project, so Build+Go on new projects were 
broken out-of-the-box. Bob documented how to fix up your project here:

http://pyobjc.sourceforge.net/doc/xcode-templates.php

I dug into this a little bit and discovered Custom Executables are stored 
in the .pbxuser files, not the .pbxproj files. So, I created a 
default.pbxuser file with the Custom Executable settings, templatized 
them and popped them the project templates. Seems to work now, both in 
Xcode 2.0 and 2.1.


It would be super if sometime over the next two or three weeks there 
could be an official release with these changes (assuming no one minds 
them, of course). I want to make my text to make it look so easy to pick 
up PyObjC, that there's no reason not to :-)

| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software           http://redshed.net
|     "better" necessarily means "different"

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to