Re: [Pyobjc-dev] New NibLoader.py
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2002-11-16 23:08:02
|
bb...@ma... wrote: > Actually, yes, I do mind. :-) Ok, I see your points, and I agree. Yet, maybe it can be simpler (this _is_ Python after all ;-). How about this: Load classes from nib named "nibName" from main bundle: loadClasses(nibName) Load classes from nib named "nibName" from bundle "aBundle": loadClasses(nibName, bundle=aBundle) Load classes from nib by file path: loadClasses(path=pathToNib) [ ... ] > So, all things considered, nothing really need be changed. I'm not > sure what happens in Cocoa if you load two NIB files that have the same > class defined but the intention was that they were to be different > classes. [ ... ] (The code I ripped from AppKit/classnib.py asserts they have the same baseclass; the outlets and actions lists are merged.) Just |