Re: [Pyobjc-dev] New NibLoader.py
Brought to you by:
ronaldoussoren
From: Peter M. <zig...@po...> - 2002-11-16 15:05:50
|
On Sunday, November 17, 2002, at 01:56 AM, Ronald Oussoren wrote: > NibLoader is an enhanced version of the module objc.classnib. Neither > the original module nor the new version have a lot of documentation, > other than the code. > > The idea behind it all is simple: If you define a class in Interface > Builder (IB) it stores information about that class in a text file > inside the NIB. The module objc.classnib can be used to parse this > file and create stub python classes. This saves some typing and > removes a source of errors. I find this very convenient. Ah, so it's sort of like "Create files" in IB? > What Just did is rewrite this in such way that the text file is parsed > at runtime, removing another source of errors (forgetting to > regenerate the stub file after updating/adding class definitions in > Interface Builder) and of course showing of the flexibility of Python. Cool... I'll have to have a closer look at it. I've been writing the classes manually. Peter |