[Pythonmac-SIG] Python embedded in Cocoa
Steven D. Majewski
sdm7g@Virginia.EDU
Mon, 2 Apr 2001 13:19:00 -0400 (EDT)
On Sun, 1 Apr 2001, Jack Jansen wrote:
> The only thing you need then is access from Python to the specific
> widget you want to put the output in, but if I understand the
> ObjC/Python bridge stuff (which I haven't used, so this is all from
> what I've read here) that should all be in place.
I've been having some problems doing some things in Cocoa from
python which seem to be due to running from a command line app
rather than a bundled application (with resources and Nibs,etc.).
I'm beginning to think "you can't get there from here!"
It will be interesting to see if those problems go away running
python from a Cocoa console.
BTW: There is a neat demo app in the Darwin CVS (although it's
really a OSX app) called DropScript, which takes a script makes
another app bundle that launches that script with whatever filenames
are dropped on it. It works with python scripts.
It still doesn't solve my bundle problem, because it's actually
launched as a separate process with NSTask ( and stdout goes to
the console window ), but the source code is definitely worth
a read!
-- Steve Majewski