Re: [Pyobjc-dev] NibLoader.py: parsing nibs at runtime
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-15 16:30:05
|
[code committed] Unfortunately, I'm not having any luck modifying WebServicesTool to use the loader. If I do: from AppKit import NibLoader NibLoader.addNibFromBundle( "MainMenu.nib" ) class WSTApplicationDelegate (NibLoader): def newConnectionAction_(self, sender): WSTConnectionWindowController.connectionWindowController().showWindow_(s ender) def applicationDidFinishLaunching_(self, aNotification): self.newConnectionAction_(None) ... then, at runtime, I see ... 2002-11-15 11:26:58.092 Web Services Tool[24489] Process ID is: 24489 ( gdb /usr/bin/python 24489 to debug) 2002-11-15 11:27:08.624 Web Services Tool[24489] Unknown class `WSTApplicationDelegate' in nib file, using `NSObject' instead. 2002-11-15 11:27:08.639 Web Services Tool[24489] Could not connect the action newConnectionAction: to target of class NSObject ... It seems that the WSTApplicationDelegate class is not being defined in a fashion that is found by the ObjC side of the bridge? Actually, If I do... print WSTApplicationDelegate print dir(WSTApplicationDelegate) ... after the class definition, the output changes to ... <module '?' (built-in)> [] 2002-11-15 11:29:30.565 Web Services Tool[24519] Unknown class `WSTApplicationDelegate' in nib file, using `NSObject' instead. 2002-11-15 11:29:30.567 Web Services Tool[24519] Could not connect the action newConnectionAction: to target of class NSObject I'm confused now. b.bum |