From: Bob Ippolito <bob@re...> - 2003-10-05 22:03:05
GNUStep Renaissance ( http://www.gnustep.it/Renaissance/ ) is basically
a very terse XML way of describing interfaces, as a cross-platform
replacement for nib files. It works perfectly in PyObjC (even outlets
seem to work with AutoBaseClass and such). Although I don't
particularly care about cross-platform at this point, it's very useful
for dynamically defining an interface.
Basically what I'm doing with a friend of mine is adding a drawer to
DrawBot, where the drawer's contents are defined dynamically by the
Python code. What this drawer will be used for is taking the constants
out of the code and assigning them to sliders, checkboxes, color wells,
etc. I spent a few hours looking around for how to create Cocoa
interfaces by hand, and it seems entirely possible, but I couldn't find
out how to do the automatic layout stuff. Renaissance, which I found
from a mailing list post on Google when poking around for nib-less
Cocoa information, solves this problem elegantly and easily from
PyObjC, especially because constructing XML from Python is cake. I'm
just starting the implementation, so I don't know if I'll have to
modify Renaissance for my purposes (hopefully not), but I'm extremely
pleased so far and I figured this was worth pointing out.
> [...] What this drawer will be used for is taking the constants out
> of the code and assigning them to sliders, checkboxes, color wells,
Sort of what I did in GnuplotEddie, although the layout itself is
static, but it displays different variables and attributes, depen-
ding on what you select in the Python/Gnuplot code.
Dinu C. Gherman
"The empires of the future are the empires of the mind."