[Pythonmac-SIG] Re: Using project builder/cocoa/carbon to build "real" OsX Python app s?
David Eppstein
eppstein@ics.uci.edu
Thu, 19 Dec 2002 21:38:29 -0800
In article <20021220024257.GA758@metamere>,
Lee Phillips <lee@lee-phillips.org> wrote:
> The home of the project is here:
>
> http://pyobjc.sourceforge.net/index.php
Just to add a little more about pyobjc (as a happy recent convert):
- it does use cocoa
- it works with the built-in X.2 command line python
(or others but that's the one I'm using it with)
- you can use it to make standalone python applications,
and users (at least, X.2 users) don't have to know you wrote
it in python or install anything else but the app itself.
- it comes with an easy to use package installer
(just double click on it to install the libraries, project builder
templates, etc...not that installing from cvs is much harder...)
- Interface Builder can be told about your python classes,
set outlets (local variables referring to other nib objects)
that you can refer to from your python code, and set actions
that cause the other nib objects to call your python methods.
- you can subclass objective C classes with python classes,
call back and forth between objective C and python, and
everything pretty much works. You need to know objective
C syntax to understand the cocoa docs but you don't ever
need to write actual code in objective C.
--
David Eppstein UC Irvine Dept. of Information & Computer Science
eppstein@ics.uci.edu http://www.ics.uci.edu/~eppstein/