Re: [Pyobjc-dev] Reorganization proposal
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2004-05-31 20:13:51
|
On 31-mei-04, at 21:27, b.bum wrote: > On May 31, 2004, at 11:38 AM, Bob Ippolito wrote: >> Now that we can reasonably move stuff around in the repository, I >> think it's time to reorganize some stuff. >> >> Examples: >> I propose that we follow something very close to Apple's >> /Developer/Examples hierarchy. The current situation is just >> confusing. We also need to start using branches for examples that >> don't work yet (and move the currently non-working ones away >> quickly). > > +1 That's fine by me, the current structure is a mess. > >> Templates: >> Templates should be stored in the repository in the openable-by-xcode >> format. It should be up to the distribution scripts to turn them >> into something usable as a template. This just makes them much >> easier to maintain. > > +1 > > The clean.py should also be renamed and will need to be modified a > bit. In particular, it needs to be aware of what files are to be > renamed as a part of project-from-template. Once that is in place, we > should be able to create Xcode templates like the Project Builder > PyObjC template that doesn't use "MyDocument" as the document name. > > Note that the NIB files in the template need to be saved in 10.2 > text-only format as it is required to do template substitions in the > NIB file (to replace MyDocument with a more useful name). The templates should also be moved one level down, I don't like having both Xcode and Project Builder Extras on the toplevel. And while we're at it: - the code-generation scripts should be moved into Lib and restructured to make it easier to reuse them. - setup.py should install pyobjc-api.h, to make it possible to create wrapper packages seperately from PyObjC (also add functions to _objc that make it unnecessary to create/generate C code for simple cases, see list archive for details) - move Scripts/runPyObjCTests into a module (objc.test.__init__?) and add a test action to setup.py. - setup.py is getting way to large, try to move functionality into seperate modules (maybe in Setup-Lib). Longer term actions: - Fix GNUstep - Make it possible to redefine classes (in a limited form, basically to make it possible to reload() modules) - Somehow make selectors do the right thing (TM) w.r.t. class and instance methods, see bug #836247 Ronald -- X|support bv http://www.xsupport.nl/ T: +31 610271479 F: +31 204416173 |