Re: [Pyobjc-dev] New NibLoader.py
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-15 23:42:39
|
It works really well and has been integrated into the repository. The WebServicesTool project has been updated to take advantage of the new nib management mechanism. I changed a few minor things [all open to debate, of course -- except where it was a stupid bug fix I caused in the first place]: - I changed the names from loadNib* to loadClassesForNib*. This better fits with Cocoa in that NibLoader isn't truly loading nibs, it is loading the classes associated with the nibs -- one may invoke the loadNib: method on NSBundle many, many times after the classes for the Nib have been loaded (and this is exactly how multi-doc apps work). - fixed a bug where it was passing .nib instead of 'nib' to NSBundle's pathForResource_ofType_ (dumb). In any case -- it works and works quite well. The performance hit is negligible. With the features that allow one to dump the current configuration of a NIB, it rounds out quite nicely. I agree w/Ronald in that some advanced debugging/analysis tools would be welcome! BTW: Technically, the classes.nib file does not have to be present for a NIB to work. It is only used by PBX/IB to store the class information. However, I don't see it as a problem that we require the file given that the developer can always fall back to the traditional means of doing things. However-- be forewarned that certain versions of nibtool -- the command line nib manipulation tool -- have a habit of blowing away the classes.nib. Definitely something to look for when automatically processing NIBs. b.bum |