Re: [Pyobjc-dev] Returning BOOLs to Cocoa
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-07-22 19:42:12
|
On Tuesday, 22 July, 2003, at 20:38, Bob Swerdlow wrote: > Ronald - > > We are using 0.9 and hope to release soon, so I haven't wanted to > upgrade to > 1.0b1 just yet. However, when I add the call as you describe, Python > tells > me "No attribute addDelegate_". Is there some module I need to > include? The method is called setDelegate_, sorry about that. The other thing you'll have to do is multiple inherit the delegate from NSWindowDelegate (should be in AppKit), e.g. 'class MyClass (AutoBaseClass, NSWindowDelegate)'. PyObjC 0.9 was the last release where this was necessary. We then came to our senses and automaticly detected which protocols you're implementing :-) Ronald |