Re: [Pyobjc-dev] Adding outlets and actions without rewiring it all
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-03-22 18:42:06
|
Antonio Rodriguez wrote: > Excuse me if this is more my ineptitude with IB than a pyobjc > question: > > Using Obj-C, when I change a class definition in IB by adding an > outlet or an action, I can use the "Read Files" option to find the > changes in the instance which I have wired up to my view. In PyObjc > this is not an option. > > the way I'm understanding it now (and correct me if I am wrong), I > have to re-instatiate and re-wire everytime I find that I forgot that > I needed an extra outlet or action. Is that correct or am I missing > something? I seem to remember that it was the same with the java > bridge which was a real show stopper for those of us constantly > tweaking our apps. If you subclass from AppKit.NibClassBuilder.AutoBaseClass, all your outlets are created automatically from the nib. Most examples in the Examples sudirectory use it. You need to call AppKit.NibClassBuilder.extractClasses() with your nib's name before you can use AutoBaseClass. Regarding actions: you have to write them yourself anyway, so I'm not even sure how PyObjC could help you there. Just |