Re: [Pyobjc-dev] New NibLoader.py
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-11-16 14:57:07
|
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. 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. Ronald |