Re: [Pyobjc-dev] multiple-nib example?
Brought to you by:
ronaldoussoren
From: b.bum <bb...@ma...> - 2004-01-02 14:25:39
|
On Jan 2, 2004, at 7:10 AM, Ronald Oussoren wrote: > WebServicesTool in the Examples directory is a document-based > application that uses multiple NIBs. > > It uses a Project-builder project and Xcode should be able to use that. Multiple NIBs with PyObjC really isn't any different than multiple NIBs with ObjC. You just need to make sure that the classes used in the NIB file are loaded (import ClassName) before you load a NIB file that uses them. The main.py/__main__.py does exactly this with the app delegate. The project builder templates will work with Xcode just fine. If your applications are targeted to 10.3 and framework python on 10.2, then you will want to modify the project builder template to use the embedded interpreter based main. The resulting app will launch faster and be a lot easier to debug with gdb, if necessary. It also allows you to freely intermix Objective-C and python in a single project without the embedded framework goofiness of the Python-ObjC-Cocoa project template. There is a single working Xcode template in the repository; the Xocde Cocoa Application (not Document Based). The main .m file in that template can be used directly. (I really need to upgrade that template...) b.bum |