Re: [Pyobjc-dev] NibLoader.py: parsing nibs at runtime
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-16 23:03:37
|
On Saturday, November 16, 2002, at 05:45 PM, Just van Rossum wrote: > Do you have any thoughts about > > from AppKit.NibClassBuilder import NibClassBuilder > class PyModel(NSTableSource): > __metaclass__ = NibClassBuilder > ... > > vs. > > from AppKit.NibClassBuilder import AutoBaseClass > class PyModel(AutoBaseClass, NSTableSource): > ... > > ? Today I'm leaning towards the latter ;-) I like the former because it strikes to my weakness for Meta Object Protocols. However, the latter prevents the developer from confusing the heck out of me by moving the __metaclass__ = ... to the very end of the class declaration. So, I'm leaning to the latter as well. Instead of AutoBaseClass, how about 'DeriveSuperFromNib' or 'SuperDerivedFromNib' or 'BaseDerivedFromNib'? But, AutoBaseClass works too... Assuming the changes are going to be relatively small from here out, I'm going to change the Cocoa-Python project accordingly. I may also look into using a pure python main, as well. b.bum |