Re: [Pyobjc-dev] working code examples ?
Brought to you by:
ronaldoussoren
From: Steven D. M. <sd...@mi...> - 2000-12-20 23:20:58
|
On Wed, 20 Dec 2000, Bill Bumgarner wrote: > Do you have the code you are testing with so far? It's pretty chopped up at the moment -- which is why I was asking if anyone had a better sample. I've got sections that weren't working commented out, but I need to retest some of that code with the new build. I've started -- which is why I added the note about loading the AppKit bundle -- my old version had that linked in. etc. etc. > You need to star the Application's event loop before you can really > do anything like handling button presses. After creating your > button, call the -setTarget: and -setAction: methods appropriately to > set up the target/action for when the button is pressed. > > Alternatively, loading a main NIB file as created by > InterfaceBuilder would set up all the target/action stuff correclty > for a main menu, etc... just make your python object the delegate of > the Application object to allow your custom python code to handle > the various events passing down the responder chain. > I am doing the setTarget: setAction: calls. I'm not using IB, but maybe I still need to define a delegate -- the error I'm getting is: Error 1011 in _sendFinishLaunchingNotification -- Steve Majewski |