Re: [Pyobjc-dev] Using Python from ObjC tutorial - Need help
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-06-16 15:03:51
|
On Monday, Jun 16, 2003, at 15:40 Europe/Amsterdam, Jack Jansen wrote: > I was going to start with the tutorial on using Python from within > your existing ObjC application, taking the CD database/iTunes > interaction I sketched last week, but I got stopped before I even got > started. > > I haven't a clue how to modify an existing ObjC project to allow > inclusion of Python code, and this isn't documented anywhere. For new > projects there's the Cocoa-Python-ObjC Application.pbproj template > which is a start, but this isn't what I want, I want to add Python > functionality to an existing project. It is a good idea to document > this anyway, methinks, as it will hopefully also contain the knowledge > that went into creation of the templates in the first place. Is the "existing project" something you have the sources for or do you want to write a plugin? If it is the former, I can't help you: my PB-ese is almost non-existant, I wouldn't be able to tell you how to add Python files to a 'Cocoa-Python Application' project without experimenting in PB. The latter is easier, see Examples/PrefPane. This builds a plugin for 'System Preferences', a simular technique should work for other applications. Ronald |