PDA

View Full Version : PyObjC / Quartz Composer / OpenGL




psonice
Nov 15, 2007, 04:29 AM
Morning!

I'm thinking of starting a bit of a project (well, moving an existing one from a platform that isn't working out) over to osx. The current code is in python, and it's a 3d app. I'd prefer to keep the current code and use python rather than learn obj c from scratch, and I see there's the pyobjc bridge for using python in cocoa apps. Anyone using it or can answer these questions?

- Can python be used with open gl? (I'll need it for doing some 3d)
- Can it be used with quartz compositions? (I'll need to pass parameters etc., and I guess create custom patches)

Failing that.. any suggestions for a good obj c book for beginners? (2 I guess as I'm on leopard)



Sijmen
Nov 15, 2007, 07:52 AM
- yes
- yes

(Sorry, don't have any links handy.)

psonice
Nov 15, 2007, 07:54 AM
\o/

Thanks, I'll dig up the documentation as I go along. So long as I know it's feasible, and I'm not going to find some kind of major roadblock half-way through.

WeeBull
Nov 16, 2007, 03:59 AM
Python: Do it on Leopard as it's far better integrated with the system, but yes, it should all be possible.

Book: Aaron Hillegas, Cocoa for Mac OSX (something like that). Apparently he's working on a third edition for Leopard / Obj-C 2.0. Think it's meant to be out early next year.

No books around for Obj-C 2.0 at the moment. It's too new.

psonice
Nov 16, 2007, 05:23 AM
Thanks again. I have leopard already, so things are looking good. I'll hold off from getting the book until the new one comes out, as I'll hopefully need very little cocoa for now. I'll just have to see if python is fast enough, and switch later if it isn't.