[Pyobjc-dev] IB question
Brought to you by:
ronaldoussoren
From: Michael E. <men...@ka...> - 2003-02-03 01:48:50
|
Hi - I'm testing out PyObjC and have some problems (or more likely misunderstandings) when trying to use IB to build a UI. I took the Cocoa-Python application template from CVS (did a pyobjc build from CVS as well). I change the MyAppDelegate file to add a method like this: def sayGoodbyeAction_(self, sender): print "goodbye" I then went into Interface BUilder and added a sayGoodbyeAction: action to the class and instantiated it and wired up the buttons, text field and delegate. WHen I rebuild the application, the button I added to the sample window doesn't work yet the button that comes with the template does work. Well that's not true, sometimes my added button/method combination works, sometimes it doesn't. I've triple checked that everything is wired up correctly and it still doesn't function. At one point I thought I had some bizarre spacing issue so I copied the sayHelloAction method and pasted it and changed the method body and method name and then it worked. then I tried adding another method and everything stopped working. Is there some bit of weirdness that I should be aware of when using IB with PyObjC? I have the October 2002 developer tools update and OS X 10.2.3. Thanks for any guidance Mike Engelhart |