[Pyobjc-dev] Project Templates
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2002-10-12 19:25:10
|
I took Jiva's suggestion and created a Project Templates directory within the pyobjc source tree. It currently contains a single template; Cocoa-Python Application. It is an edited copy of the standard Cocoa Application template. When used, the template creates a Cocoa project with the following features/attributes: - includes a Main.py that initializes the bridge appropriately - includes a copy files phase that copies the pyobjc module into the app wrapper on installation - includes a basic application delegate class implemented in Python (MyAppDelegate.py) - upon execution, the application presents a simple window with a button and a field. Click the button and an action handler fills the field with data. - only links the Foundation framework, but includes AppKit and Cocoa for indexing purposes Damned handy -- thanks Jiva! Some notes on creating templates: - always remove the .pbxuser file from the pbproj directory - make sure and edit the list of files that need expansion in the TemplateInfo.plist file (found in the pbproj) - it is also possible to automatically rename files b.bum |