[Pyobjc-dev] [super forwardInvocation:invocation];
Brought to you by:
ronaldoussoren
From: Steven D. M. <sd...@mi...> - 2000-12-29 21:59:33
|
OC_PythonObject's forwardInvocation, at the end calls: [super forwardInvocation:invocation]; However, it's superclass is NSProxy, which is an abstract class that doesn't implement forwardInvocation: , so you get an error, for example, when I try to set my application's delegate to a python class instance: NSApp.setDelegate_( Delegate() ) ObjC.error: *** -[NSProxy forwardInvocation:] called! If you comment out the super forwardInvocation, you loose that error message. Deletages still don't work, BTW, but I think it may be that the proxy object doesn't implement the methods (applicationWillBecomeActive, for example) -- the python object does. The doc's state that if the delegate implements the method, it will be called at the appropriate time. It doesn't state how that is determined, but since the proxy object itself doesn't implement those methods, I'm guessing it's looking directly at the proxy class. We probably need to add stub implementations of those methods to the proxy object. -- Steve Majewski <sd...@Vi...> |