Re: [Pyobjc-dev] Standalone Cocoa apps WORK!!!!
Brought to you by:
ronaldoussoren
From: Jiva D. <ji...@de...> - 2002-10-11 21:33:42
|
Bill, this is awesome. Is this packaged up as part of the distro yet? I want some! :) On Friday, October 11, 2002, at 11:51 AM, Bill Bumgarner wrote: > I fixed the problem with _AppKit -- it was a symbol collision. See > the NEWS file for details on what changed -- in short, I added the > 'static' keyword to a couple of the symbols generated by the > enum/strconst generator script. By using 'static', the symbols are > not externally advertised and, hence, no symbol collision occurs. > > The Web Services Tool can now be built as a standalone > double-clickable app that will run any stock OS X 10.2 box. > > To do so, you simply need to add a "Copy Files" build phase and copy > /usr/lib/python2.2/site-packages/{AppKit,Foundation,objc} into > Resources in a subdirectory named 'pyobjc'. > > The Main.py simply does... > > import sys > import os.path > sys.path.insert(0, os.path.join(sys.path[0], "pyobjc")) > > import objc > import Foundation > import AppKit > > import WSTApplicationDelegateClass > import WSTConnectionWindowControllerClass > > sys.exit( AppKit.NSApplicationMain(sys.argv) ) > > --- > > I can't even begin to tell you how happy this makes me -- finally, I > can build/release pure Python based Cocoa applications without the > user community having to dive through major hoops to install the > app!!! > > b.bum > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |