Re: [Pyobjc-dev] Mixin classes
Brought to you by:
ronaldoussoren
From: Johan R. <joh...@gm...> - 2009-05-09 10:10:33
|
>> Note that this implementation results in methods in >> later base classes overriding those in earlier ones, >> which is more or less the opposite of what normally >> happens. If you use this technique, you might want >> to reverse the order of the merging. > > Wouldn't it be more useful to tweak NSMulticlass to do the updates of the > class dict in the right order? I suspect that this comes from the fact the the first class must be the Objective-C class. With that constrain, a mixin class wouldn't be able to override methods of the first class. |