Re: [Pyobjc-dev] Merging pyobj with objc?
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-01-10 18:50:38
|
On Friday, Jan 10, 2003, at 18:51 Europe/Amsterdam, Dinu Gherman wrote: > Hi, I'm trying to understand if and how it is possible to create > PB projects containing Python *and* Objective-C sources. > > So far, I found that I can just add Obj-C .h/.m files and they seem > to compile using the Python template project as there are .o files > generated in the output. They'll get compiled into the bootstrap program, but as that is only used to start /usr/bin/python with the right argv vector that isn't very usefull. What you'll have to do is create a seperate bundle or framework and then load that from your python script. You can then use objc.lookUpClass() to access your classes. Ronald |