[Pyobjc-dev] Question about animation proxy objects
Brought to you by:
ronaldoussoren
|
From: Mani G. <ma...@tu...> - 2008-12-03 16:02:27
|
Hi all, Attempting to use proxy animations (http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/NSAnimatablePropertyContainer_protocol/Introduction/Introduction.html) on an NSWindow object causes a segmentation fault in my application. I've read the documentation over and over, and I must still be missing something! Here's how I'm trying to do it (this is a code snippet of my app delegate's instance method): [CODE] def fadeOut(self, window): window.animator().setAlphaValue_(0.0) window.orderOut_(self) [/CODE] calling fadeOut with an NSWindow instance as input, causes the application to crash. I tried the same code, without the animation proxy: [CODE] def fadeOut(self, window): window.setAlphaValue_(0.0) window.orderOut_(self) [/CODE] ... and it works just fine. Any ideas what I might be doing wrong here? (Fingers crossed that it's not something embarrassingly obvious...) Kind regards, Mani |