This discussion is archived
1172 Views 5 Replies Latest reply: Mar 31, 2009 10:26 AM by keeler1
Currently Being ModeratedMar 30, 2009 10:03 AM (in response to keeler1)Xcode has no impact on Python's include paths. You clearly installed another version and modified your settings.Several, Mac OS X (10.5.2)
Currently Being ModeratedMar 30, 2009 4:49 PM (in response to keeler1)The Python-Cocoa Xcode templates are crap - they just link whatever Python framework appears first on the host system's search path, regardless of whether or not it's the one you built against (i.e. Apple's). Either bind Apple's Python.framework yourself (see CFBundleGetFunctionPointerForName), or skip Xcode and use py2app to build a standalone application bundle with all dependencies included (this is what I do).
Currently Being ModeratedMar 30, 2009 4:59 PM (in response to keeler1)Thanks for the tip. I couldn't figure out why the library it was linked against was not getting used. I am just now trying to learn cocoa and my favorite language being python, python with cocoa is the natural way to go. Are there any good PyObjC tutorials, preferably ones that do not use xcode.13" unibody Macbook, Mac OS X (10.5.6)
Currently Being ModeratedMar 31, 2009 6:47 AM (in response to keeler1)
Are there any good PyObjC tutorials, preferably ones that do not use xcode.
I don't have any recommendations to hand, but I imagine a web search should turn up something. I know the Prags have a book on RubyCocoa coming out, but I doubt that'll be much interest if Python's your thing. Personally, I learnt PyObjC by reading up on ObjC basics so I could follow the Cocoa documentation, then playing around with the sample projects included with PyObjC. PyObjC development is pretty much just regular Cocoa development with a thin glue layer on top. There's py2app documentation online if you need it, and again the easiest thing is just to start with the existing examples and modify to suit.
Currently Being ModeratedMar 31, 2009 10:26 AM (in response to hhas)Thanks again. I might check out the RubyCocoa book. I also know Ruby and like it very much. For certain tasks it is better than Python, for some tasks it is worse and for most of the tasks they do the exact same thing.
Thank you again for all the information.13" unibody Macbook, Mac OS X (10.5.6)