[Pyobjc-dev] Standalone Cocoa apps WORK!!!!
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2002-10-11 18:51:28
|
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 |